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