diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-01-02 11:53:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-01-02 11:53:57 +0100 |
commit | e2c74f4956a6969cf668d8d2d333259a613392b1 (patch) | |
tree | 3960e7fd167cc11dadd5ccf10e33162d8c37de50 | |
parent | 7137812cacea9ee344b1c363f80e7c96ce6a4aa7 (diff) | |
download | gcc-e2c74f4956a6969cf668d8d2d333259a613392b1.zip gcc-e2c74f4956a6969cf668d8d2d333259a613392b1.tar.gz gcc-e2c74f4956a6969cf668d8d2d333259a613392b1.tar.bz2 |
Tweak update-copyright.py script
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.
-rwxr-xr-x | contrib/update-copyright.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/contrib/update-copyright.py b/contrib/update-copyright.py index 5df00a3..0e45609 100755 --- a/contrib/update-copyright.py +++ b/contrib/update-copyright.py @@ -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', |