projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-08-29 15:44:11 by simonmar]
[ghc-hetmet.git]
/
ghc
/
compiler
/
count_lines
diff --git
a/ghc/compiler/count_lines
b/ghc/compiler/count_lines
index
cbf6503
..
8c7905c
100644
(file)
--- a/
ghc/compiler/count_lines
+++ b/
ghc/compiler/count_lines
@@
-1,4
+1,4
@@
-#! /usr/local/bin/perl
+#! /usr/bin/perl
#
%DirCount = ();
%ModCount = ();
#
%DirCount = ();
%ModCount = ();
@@
-8,7
+8,7
@@
foreach $f ( @ARGV ) {
if ( $f =~ /\.lhs$/ ) {
foreach $f ( @ARGV ) {
if ( $f =~ /\.lhs$/ ) {
- open(INF, "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";
}
} 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;
} else {
print STDERR "not counted in a directory: $f\n";
$ModCount{$f} += $cnt;
- $ModComments{$mod} += $comments;
+ $ModComments{$f} += $comments;
}
}
}
}