diff options
author | Yang Tse <yangsita@gmail.com> | 2011-05-26 19:17:10 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-05-26 19:17:10 +0200 |
commit | f461c6e61df2133e55703e176c8bfc67eef05dda (patch) | |
tree | 1f641bca395b3e1bf223e3e9cbe5374f98e72f19 | |
parent | 3c9ff41a1fef4b03571f5a7f905e5016cae55208 (diff) |
Make checksrc.pl work on more out-of-tree builds
Source files given with relative paths do not have the
-D directory specifier prepended.
-rwxr-xr-x | lib/checksrc.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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; |