copyright: remove "m4/ax_compile_check_sizeof.m4" from skips

and report if skipped files do not exist.

Follow-up to 9e11c2791fb960758 which removed the file.

Closes #10369
This commit is contained in:
Daniel Stenberg 2023-01-30 11:47:07 +01:00
parent 4c48fb4933
commit e62ebe3aa8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -43,9 +43,6 @@ my %skiplist = (
"LICENSES/curl.txt" => "<built-in>",
"COPYING" => "<built-in>",
# imported, leave be
'm4/ax_compile_check_sizeof.m4' => "<built-in>",
# an empty control file
"zuul.d/playbooks/.zuul.ignore" => "<built-in>",
);
@ -167,6 +164,7 @@ sub dep5 {
dep5(".reuse/dep5");
my $checkall = 0;
my @all;
my $verbose;
if($ARGV[0] eq "-v") {
@ -178,6 +176,7 @@ if($ARGV[0]) {
}
else {
@all = `git ls-files`;
$checkall = 1;
}
for my $f (@all) {
@ -190,6 +189,7 @@ for my $f (@all) {
$pattern = $skip;
$skiplisted++;
$skipped = 1;
$skip{$f}++;
}
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);