39383c3e6c098fa788205b619eedf59bfbfbaf75 kuhn Tue Dec 11 15:51:09 2012 -0800 cleaning up formatting and grammar a bit diff --git src/utils/qa/checkStaticLinks.csh src/utils/qa/checkStaticLinks.csh index 3877757..6cb94a6 100755 --- src/utils/qa/checkStaticLinks.csh +++ src/utils/qa/checkStaticLinks.csh @@ -105,42 +105,59 @@ | sed -n "1,/<\/A>/p"` set link=`echo $link \ | awk -F'</A>' '{print $1}' \ | awk -F'>' '{print $NF}'` echo "link = $link" >> err$file echo "error = $errLine" >> err$file echo >> err$file @ j = $j + 1 end @ j = $j - 1 if ( $j > 0 ) then echo $file >> outfile$file echo $baseUrl/$filePath/$file >> outfile$file cat err$file >> outfile$file + if ( $j == 1 ) then + echo " found $j error in $file" >> outfile$file + else echo " found $j errors in $file" >> outfile$file + endif echo "---------------------------" >> outfile$file echo >> outfile$file cat outfile$file >> outfile endif rm -f err$file endif rm -f tmp rm -f outfile$file endif @ i = $i + 1 end echo "\n directory = htdocs/$filePath" >> outfile +if ( $i == 1 ) then + echo " checked $i file" >> outfile +else echo " checked $i files" >> outfile +endif + # note: if you change the line below the wrapper script will break +if ( $errs == 0 ) then + echo " found no files with errors\n" >> outfile +endif +if ( $errs == 1 ) then + echo " found errors in $errs file\n" >> outfile +else echo " found errors in $errs files\n" >> outfile +endif + echo >> outfile # cat outfile if ( $filePath == "" ) then set out=htdocs.err else set out=`echo $filePath | sed s@/@.@g`.err endif mv outfile $out