copyright: remove "m4/ax_compile_check_sizeof.m4" from skips
and report if skipped files do not exist.
Follow-up to 9e11c2791f which removed the file.
Closes #10369
This commit is contained in:
parent
4c48fb4933
commit
e62ebe3aa8
@ -43,9 +43,6 @@ my %skiplist = (
|
|||||||
"LICENSES/curl.txt" => "<built-in>",
|
"LICENSES/curl.txt" => "<built-in>",
|
||||||
"COPYING" => "<built-in>",
|
"COPYING" => "<built-in>",
|
||||||
|
|
||||||
# imported, leave be
|
|
||||||
'm4/ax_compile_check_sizeof.m4' => "<built-in>",
|
|
||||||
|
|
||||||
# an empty control file
|
# an empty control file
|
||||||
"zuul.d/playbooks/.zuul.ignore" => "<built-in>",
|
"zuul.d/playbooks/.zuul.ignore" => "<built-in>",
|
||||||
);
|
);
|
||||||
@ -167,6 +164,7 @@ sub dep5 {
|
|||||||
|
|
||||||
dep5(".reuse/dep5");
|
dep5(".reuse/dep5");
|
||||||
|
|
||||||
|
my $checkall = 0;
|
||||||
my @all;
|
my @all;
|
||||||
my $verbose;
|
my $verbose;
|
||||||
if($ARGV[0] eq "-v") {
|
if($ARGV[0] eq "-v") {
|
||||||
@ -178,6 +176,7 @@ if($ARGV[0]) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@all = `git ls-files`;
|
@all = `git ls-files`;
|
||||||
|
$checkall = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for my $f (@all) {
|
for my $f (@all) {
|
||||||
@ -190,6 +189,7 @@ for my $f (@all) {
|
|||||||
$pattern = $skip;
|
$pattern = $skip;
|
||||||
$skiplisted++;
|
$skiplisted++;
|
||||||
$skipped = 1;
|
$skipped = 1;
|
||||||
|
$skip{$f}++;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $r = checkfile($f, $skipped, $pattern);
|
my $r = checkfile($f, $skipped, $pattern);
|
||||||
@ -218,4 +218,12 @@ if($verbose) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($checkall) {
|
||||||
|
for(keys %skiplist) {
|
||||||
|
if(!$skip{$_}) {
|
||||||
|
printf STDERR "$_ is marked for SKIP but is missing!\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
exit 1 if($missing || $wrong);
|
exit 1 if($missing || $wrong);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user