summaryrefslogtreecommitdiff
path: root/usr.bin/lorder
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
parentd313a8992d763dc93c3726cc213f9def9cf0d391 (diff)
Accept ${NM} as an override for nm(1), useful for cross-dev.
Diffstat (limited to 'usr.bin/lorder')
-rw-r--r--usr.bin/lorder/lorder.sh4
-rw-r--r--usr.bin/lorder/lorder.sh.gnm4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh
index 6d55fb8dfaa..64e5e2625cc 100644
--- a/usr.bin/lorder/lorder.sh
+++ b/usr.bin/lorder/lorder.sh
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: lorder.sh,v 1.5 1996/10/12 18:33:53 deraadt Exp $
+# $OpenBSD: lorder.sh,v 1.6 1997/01/23 02:19:58 niklas Exp $
# $NetBSD: lorder.sh,v 1.3 1995/04/24 07:38:52 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.
-nm -go $* | sed "
+${NM:-nm} -go $* | sed "
/:$/ {
s/://
s/.*/& &/
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/.*/& &/