From e2c74f4956a6969cf668d8d2d333259a613392b1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 2 Jan 2025 11:53:57 +0100 Subject: [PATCH] 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 * 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 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/contrib/update-copyright.py b/contrib/update-copyright.py index 5df00a33d771..0e45609d5ebe 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', -- 2.47.3