Modify the lines of code counting mechanism to use the new "countloc.sh"
authorReid Spencer <rspencer@reidspencer.com>
Mon, 6 Sep 2004 19:32:55 +0000 (19:32 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 6 Sep 2004 19:32:55 +0000 (19:32 +0000)
utility. This avoids some problems with long line lengths and counting the
wrong things.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16200 91177308-0d34-0410-b5e6-96231b3b80d8

utils/NightlyTest.pl

index 8137d3ea5299da229ea0e6507e6f308f3af7513c..059d0c0b407408c894599c9ff6013b73d76801c1 100755 (executable)
@@ -372,7 +372,7 @@ my $TemplateContents = ReadFile $Template;
 my $CVSCheckoutTime = GetRegex "([0-9.]+)", `grep '^real' $CVSLog`;
 my $NumFilesInCVS = `egrep '^U' $CVSLog | wc -l` + 0;
 my $NumDirsInCVS  = `egrep '^cvs (checkout|server|update):' $CVSLog | wc -l` + 0;
-$LOC = GetRegex "([0-9]+) +total", `wc -l \`utils/getsrcs.sh\` | grep total`;
+$LOC = `utils/countloc.sh`;
 
 #
 # Build the entire tree, saving build messages to the build log