summaryrefslogtreecommitdiff
path: root/usr.bin/lorder/lorder.sh.gnm
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-23 02:20:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-23 02:20:00 +0000
commit5300c737cb10fe699f01cdd98f215685666b6b1a (patch)
tree0d0077e1cf5215b7c8c4b166b5a2db8e578928d0 /usr.bin/lorder/lorder.sh.gnm
parentd313a8992d763dc93c3726cc213f9def9cf0d391 (diff)
Accept ${NM} as an override for nm(1), useful for cross-dev.
Diffstat (limited to 'usr.bin/lorder/lorder.sh.gnm')
-rw-r--r--usr.bin/lorder/lorder.sh.gnm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/lorder/lorder.sh.gnm b/usr.bin/lorder/lorder.sh.gnm
index e518882d409..bffbf6aa627 100644
--- a/usr.bin/lorder/lorder.sh.gnm
+++ b/usr.bin/lorder/lorder.sh.gnm
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: lorder.sh.gnm,v 1.5 1996/09/16 01:16:27 deraadt Exp $
+# $OpenBSD: lorder.sh.gnm,v 1.6 1997/01/23 02:19:59 niklas Exp $
# $NetBSD: lorder.sh.gnm,v 1.3 1995/12/20 04:45:11 cgd Exp $
#
# Copyright (c) 1990, 1993
@@ -73,7 +73,7 @@ trap "rm -rf $TDIR; exit 1" 1 2 3 13 15
#
# if the line has " U " it's a globally undefined symbol, put it into
# the reference file.
-(for file in $* ; do echo $file":" ; done ; nm -go $*) | sed "
+(for file in $* ; do echo $file":" ; done ; ${NM:-nm} -go $*) | sed "
/:$/ {
s/://
s/.*/& &/