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:
parent
4685db9462
commit
cbd98b2c28
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user