=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lorder/Attic/lorder.sh.gnm,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/lorder/Attic/lorder.sh.gnm 1995/10/18 08:45:35 1.1 --- src/usr.bin/lorder/Attic/lorder.sh.gnm 1995/12/18 16:46:17 1.2 *************** *** 1,5 **** #!/bin/sh - ! # $NetBSD: lorder.sh.gnm,v 1.1 1995/04/24 07:39:06 cgd Exp $ # # Copyright (c) 1990, 1993 # The Regents of the University of California. All rights reserved. --- 1,5 ---- #!/bin/sh - ! # $NetBSD: lorder.sh.gnm,v 1.2 1995/12/18 07:45:17 jonathan Exp $ # # Copyright (c) 1990, 1993 # The Regents of the University of California. All rights reserved. *************** *** 63,78 **** # # if the line has " U " it's a globally undefined symbol, put it into # the reference file. ! for file in $* ; do ! ( echo "" ; echo ${file}: ; nm -go $file ) | sed " /:$/ { s/:// s/.*/& &/ p d } ! / [TD] / { ! s/:.* [TD] / / w $S d } --- 63,77 ---- # # 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 " /:$/ { s/:// s/.*/& &/ p d } ! / [TDGR] / { ! s/:.* [TDGR] / / w $S d } *************** *** 82,92 **** } d " - done # sort symbols and references on the first field (the symbol) # join on that field, and print out the file names. sort +1 $R -o $R sort +1 $S -o $S join -j 2 -o 1.1 2.1 $R $S ! rm -f $R $S --- 81,90 ---- } d " # sort symbols and references on the first field (the symbol) # join on that field, and print out the file names. sort +1 $R -o $R sort +1 $S -o $S join -j 2 -o 1.1 2.1 $R $S ! rm -f $R