From: Dan Fandrich Date: Wed, 27 Apr 2011 19:42:15 +0000 (-0700) Subject: Make checksrc.pl work on out-of-tree builds X-Git-Tag: curl-7_21_7~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbd98b2c28315a2285c4447eba2b06128da1abe0;p=curl Make checksrc.pl work on out-of-tree builds Source files given with absolute paths do not have the -D directory specifier prepended. --- diff --git a/lib/checksrc.pl b/lib/checksrc.pl index c1056d26c..99bbc74d0 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -79,9 +79,10 @@ if(!$file) { } do { - if($file ne "$wlist") { - scanfile("$dir/$file"); + my $fullname = $file; + $fullname = "$dir/$file" if $fullname !~ '^/'; + scanfile($fullname); } $file = shift @ARGV;