From: niklas Date: Thu, 23 Jan 1997 02:19:58 +0000 (+0000) Subject: Accept ${NM} as an override for nm(1), useful for cross-dev. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=70682e053a11916a04aaeef554de3226e649b2ae;p=openbsd Accept ${NM} as an override for nm(1), useful for cross-dev. --- 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/.*/& &/