xref: /freebsd/contrib/unifdef/tests/multi-generic-sh (revision e043f37205ffbde5627ff299ad25cd532f2956f0)
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