diff options
| author | Dan Fandrich <dan@coneharvesters.com> | 2011-04-27 12:42:15 -0700 | 
|---|---|---|
| committer | Dan Fandrich <dan@coneharvesters.com> | 2011-04-27 12:42:15 -0700 | 
| commit | cbd98b2c28315a2285c4447eba2b06128da1abe0 (patch) | |
| tree | c175adb446d1881b93f0434fbbc48480201fe587 /lib | |
| parent | 4685db946291b488a5275c642e31478c0c8724ea (diff) | |
Make checksrc.pl work on out-of-tree builds
Source files given with absolute paths do not have the
-D directory specifier prepended.
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/checksrc.pl | 5 | 
1 files changed, 3 insertions, 2 deletions
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;  | 
