aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-05-26 19:17:10 +0200
committerYang Tse <yangsita@gmail.com>2011-05-26 19:17:10 +0200
commitf461c6e61df2133e55703e176c8bfc67eef05dda (patch)
tree1f641bca395b3e1bf223e3e9cbe5374f98e72f19 /lib
parent3c9ff41a1fef4b03571f5a7f905e5016cae55208 (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.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/checksrc.pl2
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;