xref: /freebsd/contrib/unifdef/tests/multi-generic-sh (revision 7899f917b1c0ea178f1d2be0cfb452086d079d23)
1mfiles=""
2for f in $files
3do
4	rm -f m$f
5	[ -f $f ] && cp $f m$f
6	mfiles="$mfiles m$f"
7done
8unifdef -M~ $opts $mfiles
9e=$?
10for f in $mfiles
11do
12	diff -u $f~ $f | sed '/^[+-]\{3\} /s/	.*//'
13	rm -f $f~ $f
14done
15exit $e
16