From: kolya Date: Sun, 12 Oct 2008 18:33:14 +0000 (+0000) Subject: fix: when two names only differed in case, crossrefs only included one of them. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=6186836d28944dbe3451bc154c0268ac2c90a313;p=cs3210-lab0.git fix: when two names only differed in case, crossrefs only included one of them. thanks to greg price. --- diff --git a/runoff b/runoff index d0e11c5..8db9bcc 100755 --- a/runoff +++ b/runoff @@ -157,7 +157,7 @@ perl -n -e 'print if s/^([0-9]+ [a-zA-Z0-9_]+)\(.*$/\1/;' alltext | >s.defs # make reference list -for i in `awk '{print $2}' defs | sort -fu` +for i in `awk '{print $2}' defs | sort -f | uniq` do defs=`egrep '^[0-9]+ '$i'( |$)' defs | awk '{print $1}'` echo $i $defs >>s.defs