diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2001-03-06 15:00:32 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2001-03-06 15:00:32 +0000 |
| commit | 7172dc3b5449b3f098ca2389e3c181d8a8a86802 (patch) | |
| tree | 15585a32b897e718cf4400db5c4d425a07698208 /usr.bin | |
| parent | a0581bbcc2137a4f94dfb5b33c5f8393952224af (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/lorder/lorder.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh index a284325fc3dce..7e6de599ba68d 100644 --- a/usr.bin/lorder/lorder.sh +++ b/usr.bin/lorder/lorder.sh @@ -49,6 +49,7 @@ esac # temporary files R=$(mktemp -t _reference_) S=$(mktemp -t _symbol_) +NM=${NM:-nm} # remove temporary files on HUP, INT, QUIT, PIPE, TERM trap "rm -f $R $S; exit 1" 1 2 3 13 15 @@ -63,7 +64,7 @@ done # # if the line has " U " it's a globally undefined symbol, put it into # the reference file. -nm -go $* | sed " +${NM} -go $* | sed " / [TD] / { s/:.* [TD] / / w $S |
