Make checksrc.pl work on more out-of-tree builds

Source files given with relative paths do not have the
-D directory specifier prepended.
This commit is contained in:
Yang Tse 2011-05-26 19:17:10 +02:00
parent 3c9ff41a1f
commit f461c6e61d

View File

@ -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;