From: Yang Tse Date: Thu, 26 May 2011 17:17:10 +0000 (+0200) Subject: Make checksrc.pl work on more out-of-tree builds X-Git-Tag: curl-7_21_7~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f461c6e61df2133e55703e176c8bfc67eef05dda;p=curl Make checksrc.pl work on more out-of-tree builds Source files given with relative paths do not have the -D directory specifier prepended. --- diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 019406b37..5d369496a 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -81,7 +81,7 @@ if(!$file) { do { if($file ne "$wlist") { my $fullname = $file; - $fullname = "$dir/$file" if $fullname !~ '^/'; + $fullname = "$dir/$file" if ($fullname !~ '^\.?\.?/'); scanfile($fullname); } $file = shift @ARGV;