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