summaryrefslogtreecommitdiff
path: root/usr.bin/unifdef
diff options
context:
space:
mode:
authorTony Finch <fanf@FreeBSD.org>2009-11-26 02:14:08 +0000
committerTony Finch <fanf@FreeBSD.org>2009-11-26 02:14:08 +0000
commit8af26c5e86bc7d04ca94f10324d0d5abedd25982 (patch)
treea533e7e39a30a457545cc716e6ea474b18e69248 /usr.bin/unifdef
parent767cb2e29d4183d9978a5973b5092c6e0079eb6b (diff)
downloadsrc-test-8af26c5e86bc7d04ca94f10324d0d5abedd25982.tar.gz
src-test-8af26c5e86bc7d04ca94f10324d0d5abedd25982.zip
Remove debugging remnants from unifdefall.
Submitted by: Jonathan Nieder <jrnieder@gmail.com>
Notes
Notes: svn path=/head/; revision=199817
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 143e0d49f74fc..60436a002e397 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"