diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-08-15 07:10:21 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-08-15 07:10:21 +0000 |
| commit | 559628a153cdc51733641a86405993f37030eac4 (patch) | |
| tree | dc1652ea6902081759d2d9e026d3d53ba4ef4233 /usr.bin | |
| parent | 45696a866c8f58b5849b8696960b88f15192117a (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/lorder/lorder.sh | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh index dea1e104d8af..b23e3519b042 100644 --- a/usr.bin/lorder/lorder.sh +++ b/usr.bin/lorder/lorder.sh @@ -34,9 +34,6 @@ # @(#)lorder.sh 8.1 (Berkeley) 6/6/93 # -PATH=/bin:/usr/bin -export PATH - # only one argument is a special case, just output the name twice case $# in 0) @@ -54,21 +51,17 @@ S=/tmp/_symbol_$$ # remove temporary files on HUP, INT, QUIT, PIPE, TERM trap "rm -f $R $S; exit 1" 1 2 3 13 15 -# if the line ends in a colon, assume it's the first occurrence of a new -# object file. Echo it twice, just to make sure it gets into the output. -# +# make sure all the files get into the output +for i in $*; do + echo $i $i +done + # if the line has " T " or " D " it's a globally defined symbol, put it # into the symbol file. # # if the line has " U " it's a globally undefined symbol, put it into # the reference file. nm -go $* | sed " - /:$/ { - s/:// - s/.*/& &/ - p - d - } / [TD] / { s/:.* [TD] / / w $S |
