accomodate sun nm format

This commit is contained in:
rsc 2005-01-07 07:28:36 +00:00
parent c71af67adc
commit 190857f93e

4
bin/9l
View file

@ -21,7 +21,7 @@ then
for i for i
do do
case "$i" in case "$i" in
[^-]*.o) *.o)
ofiles="$ofiles $i" ofiles="$ofiles $i"
;; ;;
esac esac
@ -34,7 +34,7 @@ then
a=` a=`
nm $ofiles | nm $ofiles |
grep '__p9l_autolib_[a-zA-Z0-9+-]*$' | grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
sed 's/.* __p9l_autolib_//' | sed 's/.*__p9l_autolib_//' |
sort -u sort -u
` `
for i in $a for i in $a