From cbd98b2c28315a2285c4447eba2b06128da1abe0 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 27 Apr 2011 12:42:15 -0700 Subject: Make checksrc.pl work on out-of-tree builds Source files given with absolute paths do not have the -D directory specifier prepended. --- lib/checksrc.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/checksrc.pl') 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; -- cgit v1.2.3