Commit cbd98b2c authored by Dan Fandrich's avatar Dan Fandrich
Browse files

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

Source files given with absolute paths do not have the
-D directory specifier prepended.
parent 4685db94
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -79,9 +79,10 @@ if(!$file) {
}
}


do {
do {

    if($file ne "$wlist") {
    if($file ne "$wlist") {
        scanfile("$dir/$file");
        my $fullname = $file;
        $fullname = "$dir/$file" if $fullname !~ '^/';
        scanfile($fullname);
    }
    }
    $file = shift @ARGV;
    $file = shift @ARGV;