From: Daniel Stenberg Date: Mon, 30 Jan 2023 10:47:07 +0000 (+0100) Subject: copyright: remove "m4/ax_compile_check_sizeof.m4" from skips X-Git-Tag: curl-7_88_0~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e62ebe3aa8924d9b05198c27c598d9840ea08ece;p=thirdparty%2Fcurl.git 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 --- diff --git a/scripts/copyright.pl b/scripts/copyright.pl index f295107ad6..78bf049885 100755 --- a/scripts/copyright.pl +++ b/scripts/copyright.pl @@ -43,9 +43,6 @@ my %skiplist = ( "LICENSES/curl.txt" => "", "COPYING" => "", - # imported, leave be - 'm4/ax_compile_check_sizeof.m4' => "", - # an empty control file "zuul.d/playbooks/.zuul.ignore" => "", ); @@ -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);