7ef296f999c35a96bf0150092a30784b1821d50e kuhn Wed May 27 09:45:13 2020 -0700 added no whitespace flag to git blame statement to get past massive change that obscures true owner of lines in newsarch.html diff --git src/utils/qa/whoMadeIt.csh src/utils/qa/whoMadeIt.csh index c0cc755..90594bd 100755 --- src/utils/qa/whoMadeIt.csh +++ src/utils/qa/whoMadeIt.csh @@ -57,31 +57,31 @@ # omitting dot oh files set isDir=0 if ( `file $location | awk '{print $NF}'` == "directory" ) then set isDir=1 set full="" set files=`ls $location | egrep -v '.o$'` foreach file ( $files ) set full="$full $location/$file" end set location="$full" endif rm -f grandTotFile$$ foreach file ( $location ) echo $file - git blame $file | awk -F'(' '{print $2}' \ + git blame -w $file | awk -F'(' '{print $2}' \ | awk -F'20' '{print $1}' | sort \ | uniq -c | sort -k2 -nr >& xxOutFilexx set size=`cat xxOutFilexx | awk '{total+=$1} END {print total}'` set i=$aliases mv xxOutFilexx tmp001$i while ( $i > 0 ) # sum and substitute to get one name per person set first=`cat tmp001$i | egrep "$alias[$i]" | awk '{print $1}'` set secon=`cat tmp001$i | egrep "$names[$i]" | awk '{print $1}'` set sum=`echo $first $secon | awk '{print $1+$2}'` if ( $sum > $first ) then cat tmp001$i | grep -v "${first} $alias[$i]" \