diff options
author | Tony Finch <fanf@FreeBSD.org> | 2002-09-24 19:50:03 +0000 |
---|---|---|
committer | Tony Finch <fanf@FreeBSD.org> | 2002-09-24 19:50:03 +0000 |
commit | 36076c1e7bd3f00256d0c011019b4e95f0579c71 (patch) | |
tree | b35f4d0874e6fa278b92e5c65b589b75ad2ee877 /usr.bin/unifdef/unifdefall.sh | |
parent | 981dbf5bacc31084f4e3e03a4d402f45832dd6d8 (diff) | |
download | src-36076c1e7bd3f00256d0c011019b4e95f0579c71.tar.gz src-36076c1e7bd3f00256d0c011019b4e95f0579c71.zip |
The spec says that unifdefall removes all #ifs, and this now requires
the -k flag to unifdef.
Notes
Notes:
svn path=/head/; revision=103908
Diffstat (limited to 'usr.bin/unifdef/unifdefall.sh')
-rw-r--r-- | usr.bin/unifdef/unifdefall.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/unifdef/unifdefall.sh b/usr.bin/unifdef/unifdefall.sh index 5625eb970211..bcba08c9712b 100644 --- a/usr.bin/unifdef/unifdefall.sh +++ b/usr.bin/unifdef/unifdefall.sh @@ -2,7 +2,7 @@ # # remove all the #if's from a source file # -# $dotat: things/unifdefall.sh,v 1.8 2002/05/15 10:31:20 fanf Exp $ +# $dotat: things/unifdefall.sh,v 1.9 2002/09/24 19:43:57 fanf2 Exp $ # $FreeBSD$ set -e @@ -17,7 +17,7 @@ sed -Ee 's/^([A-Za-z0-9_]+).*$/\1/' $tmp/hashdefs > $tmp/alldef comm -23 $tmp/ctrl $tmp/alldef > $tmp/undef comm -12 $tmp/ctrl $tmp/alldef > $tmp/def -echo unifdef \\ > $tmp/cmd +echo unifdef -k \\ > $tmp/cmd sed -Ee 's/^(.*)$/-U\1 \\/' $tmp/undef >> $tmp/cmd while read sym do sed -Ee '/^('"$sym"')([(][^)]*[)])?([ ]+(.*))?$/!d;s//-D\1=\4/' $tmp/hashdefs |