#!/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
#
# 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/.*/& &/
#!/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
#
# 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/.*/& &/