]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Tweak update-copyright.py script
authorJakub Jelinek <jakub@redhat.com>
Thu, 2 Jan 2025 10:53:57 +0000 (11:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 2 Jan 2025 10:53:57 +0000 (11:53 +0100)
When running update-copyright.py --this-year, I've encountered various
failures, this patch works around those.

2025-01-02  Jakub Jelinek  <jakub@redhat.com>

* update-copyright.py (GCCFilter): Ignore gen-evolution.awk and
gen-cxxapi-file.py.
(TestsuiteFilter): Ignore spec-example-4.sarif.
(LibCppFilter): Ignore uname2c.h.

contrib/update-copyright.py

index 5df00a33d771f60f1fad896ad744b0baec8ada4d..0e45609d5ebe5deeb2dd7f5f1da9f91c5e8b82ee 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 #
-# Copyright (C) 2013-2024 Free Software Foundation, Inc.
+# Copyright (C) 2013-2025 Free Software Foundation, Inc.
 #
 # This script is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -560,6 +560,8 @@ class GCCFilter (GenericFilter):
 
                 # Weird ways to compose copyright year
                 'GmcOptions.cc',
+                'gen-evolution.awk',
+                'gen-cxxapi-file.py',
                 ])
 
         self.skip_dirs |= set ([
@@ -587,6 +589,11 @@ class TestsuiteFilter (GenericFilter):
     def __init__ (self):
         GenericFilter.__init__ (self)
 
+        self.skip_files |= set ([
+                # Weird ways to compose copyright year
+                'spec-example-4.sarif',
+                ])
+
         self.skip_extensions |= set ([
                 # Don't change the tests, which could be woend by anyone.
                 '.c',
@@ -620,6 +627,12 @@ class LibCppFilter (GenericFilter):
     def __init__ (self):
         GenericFilter.__init__ (self)
 
+        self.skip_files |= set ([
+                # Generated file with the generated strings sometimes
+                # matching the regexps.
+                'uname2c.h',
+                ])
+
         self.skip_extensions |= set ([
                 # Maintained by the translation project.
                 '.po',