]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
copyright: remove "m4/ax_compile_check_sizeof.m4" from skips
authorDaniel Stenberg <daniel@haxx.se>
Mon, 30 Jan 2023 10:47:07 +0000 (11:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 30 Jan 2023 14:40:46 +0000 (15:40 +0100)
and report if skipped files do not exist.

Follow-up to 9e11c2791fb960758 which removed the file.

Closes #10369

scripts/copyright.pl

index f295107ad6de62aae6e9639a95f2039d9aff2df8..78bf049885cf035cc9ac3d7bcc752b670a0352d3 100755 (executable)
@@ -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);