Allow one to specify the AWK used in the environment(commandline).

Gawk is blowing up when run natively on the sparc64 -- leading to totally
bogus kernel values (all "0x0").  Good ole BWK awk works fine however.
This commit is contained in:
David E. O'Brien 2002-02-11 03:54:30 +00:00
parent 505e7511bc
commit 952539e39a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90517

View File

@ -23,7 +23,7 @@ case $# in
*) usage;;
esac
${NM:='nm'} "$1" | awk '
${NM:='nm'} "$1" | ${AWK:='awk'} '
/ C .*sign$/ {
sign = substr($1, length($1) - 3, 4)
sub("^0*", "", sign)