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

Source files given with absolute paths do not have the
-D directory specifier prepended.
This commit is contained in:
Dan Fandrich 2011-04-27 12:42:15 -07:00
parent 4685db9462
commit cbd98b2c28

View File

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