From 1be654d67e2ab7fd317c3aa9a9cc702af7d5f708 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 23 Sep 2009 18:22:51 +0000 Subject: [PATCH] Make count_lines work with the new directory layout --- utils/count_lines/count_lines | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/count_lines/count_lines b/utils/count_lines/count_lines index ad5aa52..1e0942c 100644 --- a/utils/count_lines/count_lines +++ b/utils/count_lines/count_lines @@ -1,14 +1,18 @@ #! /usr/bin/perl -# + +use FindBin; + %DirCount = (); %ModCount = (); %DirComments = (); %ModComments = (); +my $binPath = $FindBin::Bin; + foreach $f ( @ARGV ) { if ( $f =~ /\.lhs$/ ) { - open(INF, "../utils/unlit/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"; } -- 1.7.10.4