bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can we have gnulib-tool.py emit the same copyright header?


From: Collin Funk
Subject: Can we have gnulib-tool.py emit the same copyright header?
Date: Tue, 27 Feb 2024 17:41:51 -0800
User-agent: Mozilla Thunderbird

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

Attachment: 0001-gnulib-tool.py-Emit-copyright-notices-as-a-year-rang.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]