summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/.*/& &/