public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Small tweaks for update-copyright.py
@ 2024-01-03 11:41 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2024-01-03 11:41 UTC (permalink / raw)
  To: gcc-patches

Hi!

update-copyright.py --this-year FAILs on two spots in the modula2
directories.
One is gpl_v3_without_node.texi, I think that is similar to other
license files which we already exclude from updates.
And the other is GmcOptions.cc, which has lines like
  mcPrintf_printf0 ((const char *) "Copyright ", 10);
  mcPrintf_printf1 ((const char *) "Copyright (C) %d Free Software Foundation, Inc.\\n", 49, (const unsigned char *) &year, (sizeof (year)-1));
  mcPrintf_printf1 ((const char *) "Copyright (C) %d Free Software Foundation, Inc.\\n", 49, (const unsigned char *) &year, (sizeof (year)-1));
which update-copyhright.py obviously can't grok.  The file is generated
and doesn't contain normal Copyright year which should be updated, so I think
it is also ok to skip it.

Committed as obvious to trunk, together with rotation of ChangeLog and
manual and automatic copyright year updates as done every year.

2024-01-03  Jakub Jelinek  <jakub@redhat.com>

	* update-copyright.py (GenericFilter): Skip gpl_v3_without_node.texi.
	(GCCFilter): Skip GmcOptions.cc.

--- contrib/update-copyright.py
+++ contrib/update-copyright.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 #
-# Copyright (C) 2013-2023 Free Software Foundation, Inc.
+# Copyright (C) 2013-2024 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
@@ -83,6 +83,7 @@ class GenericFilter:
                 'gpl_v3.texi',
                 'fdl-1.3.xml',
                 'gpl-3.0.xml',
+                'gpl_v3_without_node.texi',
 
                 # Skip auto- and libtool-related files
                 'aclocal.m4',
@@ -556,6 +557,9 @@ class GCCFilter (GenericFilter):
         self.skip_files |= set ([
                 # Not part of GCC
                 'math-68881.h',
+
+                # Weird ways to compose copyright year
+                'GmcOptions.cc',
                 ])
 
         self.skip_dirs |= set ([


	Jakub


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-03 11:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03 11:41 [committed] Small tweaks for update-copyright.py Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).