Hi! When running update-copyright.py --this-year, I've encountered various failures, this patch works around those.
Committed as obvious. For gen-evolution.awk, gen-cxxapi-file.py and uname2c.h I've dealt with copyright year updates manually later on. Note, I've also rotated ChangeLogs with yearly cadence and committed manual as well as scripted copyright year updates. See https://gcc.gnu.org/r15-6495 https://gcc.gnu.org/r15-6496 https://gcc.gnu.org/r15-6497 https://gcc.gnu.org/r15-6500 https://gcc.gnu.org/r15-6501 for details. 2025-01-02 Jakub Jelinek <ja...@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 +++ 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', Jakub