summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-01-30 11:47:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-01-30 15:40:46 +0100
commite62ebe3aa8924d9b05198c27c598d9840ea08ece (patch)
treead6a7970fc8bd0e8be7b63d841f5e8f81e350c8e /scripts
parent4c48fb493363aeb8019b90f37a2f24b81582d2ac (diff)
downloadcurl-e62ebe3aa8924d9b05198c27c598d9840ea08ece.tar.gz
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/copyright.pl14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/copyright.pl b/scripts/copyright.pl
index f295107ad..78bf04988 100755
--- a/scripts/copyright.pl
+++ b/scripts/copyright.pl
@@ -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);