xref: /freebsd/contrib/unifdef/tests/multi-generic-sh (revision fb3ef04d2028110f06d68b09009f1f2ca0f4128e)
1*fb3ef04dSDag-Erling Smørgravmfiles=""
2*fb3ef04dSDag-Erling Smørgravfor f in $files
3*fb3ef04dSDag-Erling Smørgravdo
4*fb3ef04dSDag-Erling Smørgrav	rm -f m$f
5*fb3ef04dSDag-Erling Smørgrav	[ -f $f ] && cp $f m$f
6*fb3ef04dSDag-Erling Smørgrav	mfiles="$mfiles m$f"
7*fb3ef04dSDag-Erling Smørgravdone
8*fb3ef04dSDag-Erling Smørgravunifdef -M~ $opts $mfiles
9*fb3ef04dSDag-Erling Smørgrave=$?
10*fb3ef04dSDag-Erling Smørgravfor f in $mfiles
11*fb3ef04dSDag-Erling Smørgravdo
12*fb3ef04dSDag-Erling Smørgrav	diff -u $f~ $f | sed '/^[+-]\{3\} /s/	.*//'
13*fb3ef04dSDag-Erling Smørgrav	rm -f $f~ $f
14*fb3ef04dSDag-Erling Smørgravdone
15*fb3ef04dSDag-Erling Smørgravexit $e
16