summaryrefslogtreecommitdiff
path: root/lib/checksrc.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-04-27 12:42:15 -0700
committerDan Fandrich <dan@coneharvesters.com>2011-04-27 12:42:15 -0700
commitcbd98b2c28315a2285c4447eba2b06128da1abe0 (patch)
treec175adb446d1881b93f0434fbbc48480201fe587 /lib/checksrc.pl
parent4685db946291b488a5275c642e31478c0c8724ea (diff)
downloadcurl-cbd98b2c28315a2285c4447eba2b06128da1abe0.tar.gz
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/checksrc.pl')
-rwxr-xr-xlib/checksrc.pl5
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;