diff options
author | fanf <fanf@FreeBSD.org> | 2002-09-24 19:50:03 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2002-09-24 19:50:03 +0000 |
commit | e51e2c42c3e7531af982259541b1ed53f2e74a00 (patch) | |
tree | b35f4d0874e6fa278b92e5c65b589b75ad2ee877 /usr.bin | |
parent | 31ed0a9f39ad487e201336bd226ab4fff7a00d28 (diff) | |
download | FreeBSD-src-e51e2c42c3e7531af982259541b1ed53f2e74a00.zip FreeBSD-src-e51e2c42c3e7531af982259541b1ed53f2e74a00.tar.gz |
The spec says that unifdefall removes all #ifs, and this now requires
the -k flag to unifdef.
Diffstat (limited to 'usr.bin')
-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 5625eb9..bcba08c 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 |