Date: Thu, 26 Nov 2009 02:14:08 +0000 (UTC) From: Tony Finch <fanf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r199817 - head/usr.bin/unifdef Message-ID: <200911260214.nAQ2E8Zw067843@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fanf Date: Thu Nov 26 02:14:08 2009 New Revision: 199817 URL: http://svn.freebsd.org/changeset/base/199817 Log: Remove debugging remnants from unifdefall. Submitted by: Jonathan Nieder <jrnieder@gmail.com> Modified: head/usr.bin/unifdef/unifdefall.sh Modified: head/usr.bin/unifdef/unifdefall.sh ============================================================================== --- head/usr.bin/unifdef/unifdefall.sh Thu Nov 26 00:43:17 2009 (r199816) +++ head/usr.bin/unifdef/unifdefall.sh Thu Nov 26 02:14:08 2009 (r199817) @@ -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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911260214.nAQ2E8Zw067843>