summaryrefslogtreecommitdiffstats
path: root/usr.bin/unifdef
diff options
context:
space:
mode:
authorfanf <fanf@FreeBSD.org>2009-11-26 02:14:08 +0000
committerfanf <fanf@FreeBSD.org>2009-11-26 02:14:08 +0000
commit66e49eaba60cc64d8346f864b28b7f4bf82eed6f (patch)
treea533e7e39a30a457545cc716e6ea474b18e69248 /usr.bin/unifdef
parent6745662f291e4a2ec843786b1a2278ae3c3ae675 (diff)
downloadFreeBSD-src-66e49eaba60cc64d8346f864b28b7f4bf82eed6f.zip
FreeBSD-src-66e49eaba60cc64d8346f864b28b7f4bf82eed6f.tar.gz
Remove debugging remnants from unifdefall.
Submitted by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'usr.bin/unifdef')
-rw-r--r--usr.bin/unifdef/unifdefall.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/unifdef/unifdefall.sh b/usr.bin/unifdef/unifdefall.sh
index 143e0d4..60436a0 100644
--- a/usr.bin/unifdef/unifdefall.sh
+++ b/usr.bin/unifdef/unifdefall.sh
@@ -36,13 +36,13 @@ trap 'rm -r "$tmp" || exit 1' EXIT
export LC_ALL=C
-./unifdef -s "$@" | sort | uniq >"$tmp/ctrl"
+unifdef -s "$@" | sort | uniq >"$tmp/ctrl"
cpp -dM "$@" | sort | sed 's/^#define //' >"$tmp/hashdefs"
sed 's/[^A-Za-z0-9_].*$//' "$tmp/hashdefs" >"$tmp/alldef"
comm -23 "$tmp/ctrl" "$tmp/alldef" >"$tmp/undef"
comm -12 "$tmp/ctrl" "$tmp/alldef" >"$tmp/def"
(
- echo ./unifdef -k \\
+ echo unifdef -k \\
sed 's/.*/-U& \\/' "$tmp/undef"
while read sym
do sed -n 's/^'$sym'\(([^)]*)\)\{0,1\} /-D'$sym'=/p' "$tmp/hashdefs"
OpenPOWER on IntegriCloud