Commit 3d7e772f authored by Simon Marlow's avatar Simon Marlow
Browse files

Fix a path, and strip out C++ comments too

parent 9bae7915
......@@ -14,7 +14,7 @@ my $binPath = $FindBin::Bin;
foreach $f ( @ARGV ) {
if ( $f =~ /\.lhs$/ ) {
open(INF, "$binPath/../../inplace/lib/unlit $f - |") || die "Couldn't unlit $f!\n";
open(INF, "$binPath/../../../inplace/lib/unlit $f - |") || die "Couldn't unlit $f!\n";
} else {
open(INF, "< $f") || die "Couldn't open $f!\n";
}
......@@ -22,6 +22,7 @@ foreach $f ( @ARGV ) {
while (<INF>) {
s/--.*//;
s/{-.*-}//;
s/\/\/.*//;
next if /^\s*$/;
$cnt++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment