[project @ 2002-09-02 16:38:24 by simonpj]
[ghc-hetmet.git] / ghc / compiler / count_lines
index 9fb7b19..8c7905c 100644 (file)
@@ -8,7 +8,7 @@
 foreach $f ( @ARGV ) {
 
     if ( $f =~ /\.lhs$/ ) {
-       open(INF, "/home/simonpj/builds/slpj/ghc/utils/unlit/unlit $f - |") || die "Couldn't unlit $f!\n";
+       open(INF, "../utils/unlit/unlit $f - |") || die "Couldn't unlit $f!\n";
     } else {
        open(INF, "< $f") || die "Couldn't open $f!\n";
     }
@@ -38,7 +38,7 @@ foreach $f ( @ARGV ) {
     } else {
        print STDERR "not counted in a directory: $f\n";
        $ModCount{$f} += $cnt;
-       $ModComments{$mod} += $comments;
+       $ModComments{$f} += $comments;
     }
 }