When creating a Makefile for example, the diff between gnulib-tool and
gnulib-tool.py is:
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index a718c17c0e8..15d15970051 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -1,5 +1,5 @@
## DO NOT EDIT! GENERATED AUTOMATICALLY!
-# Copyright (C) 2002-2024 Free Software Foundation, Inc.
+# Copyright (C) 2024 Free Software Foundation, Inc.
The gnulib-tool.py one only does a single year instead of the range.
This diff is copied from the attached patch:
diff --git a/pygnulib/GLInfo.py b/pygnulib/GLInfo.py
index 808f11b06f..1759368268 100644
--- a/pygnulib/GLInfo.py
+++ b/pygnulib/GLInfo.py
@@ -80,8 +80,6 @@ class GLInfo(object):
'''Return formatted string which contains copyright.
The special __copyright__ variable is used (type is str).'''
copyright = __copyright__
- # Per the GNU Coding Standards, show only the last year.
- copyright = re.compile('^[0-9]*-').sub('', copyright)
result = 'Copyright (C) %s' % copyright
return result
The GNU Maintainer guide seems to disagree with this comment (assuming
that gnulib-tool.py is not a separate package) [1]. Am I missing
something or can we make this change?
[1] https://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices
Thanks,
Collin
From 202d152d8a0a6fa3875c44ff5cd38bdd4b0d485d Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Tue, 27 Feb 2024 17:30:18 -0800
Subject: [PATCH] gnulib-tool.py: Emit copyright notices as a year range.
* pygnulib/GLInfo.py (GLInfo.copyright): Fix copyright string. Remove
comment to reflect change.
---
ChangeLog | 6 ++++++
pygnulib/GLInfo.py | 2 --
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index af3af3707e..84f5bcee88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-27 Collin Funk <collin.fu...@gmail.com>
+
+ gnulib-tool.py: Emit copyright notices as a year range.
+ * pygnulib/GLInfo.py (GLInfo.copyright): Fix copyright string. Remove
+ comment to reflect change.
+
2024-02-27 Bruno Haible <br...@clisp.org>
isnan: Fix compilation error in C++ mode on OpenBSD 7.5-beta.
diff --git a/pygnulib/GLInfo.py b/pygnulib/GLInfo.py
index 808f11b06f..1759368268 100644
--- a/pygnulib/GLInfo.py
+++ b/pygnulib/GLInfo.py
@@ -80,8 +80,6 @@ class GLInfo(object):
'''Return formatted string which contains copyright.
The special __copyright__ variable is used (type is str).'''
copyright = __copyright__
- # Per the GNU Coding Standards, show only the last year.
- copyright = re.compile('^[0-9]*-').sub('', copyright)
result = 'Copyright (C) %s' % copyright
return result
--
2.39.2