[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gzip 1.6 --version copyright date
From: |
Jim Meyering |
Subject: |
Re: gzip 1.6 --version copyright date |
Date: |
Mon, 10 Jun 2013 03:38:09 +0200 |
Paul Eggert wrote:
> One little thing: gzip --version says:
>
> gzip 1.6
> Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
> ...
>
> I guess the copyright-date part of the release procedure
> needs to be updated....
Oh! Good catch. Thanks.
Here's a patch for that:
>From 58a7b72f13819d0546a1b3f87568ec409cf066d8 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 9 Jun 2013 18:35:47 -0700
Subject: [PATCH] maint: ensure that --version's copyright date is current
* cfg.mk (sc_gzip_copyright_check): Ensure we keep this copyright
year number up to date. Repoted by Paul Eggert.
* gzip.c (license_msg): Include only the current year number,
as is done in nearly every other program.
---
cfg.mk | 6 ++++++
gzip.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/cfg.mk b/cfg.mk
index ee291cf..18ae95f 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -64,6 +64,12 @@ sc_prohibit_emacs__indent_tabs_mode__setting:
halt='use of emacs indent-tabs-mode: setting' \
$(_sc_search_regexp)
+sc_gzip_copyright_check:
+ @require='Copyright \(C\) '$$(date +%Y)' Free' \
+ in_files=$(srcdir)/gzip.c \
+ halt='out of date copyright in $(v_etc_file); update it' \
+ $(_sc_search_regexp)
+
include $(srcdir)/dist-check.mk
exclude_file_name_regexp--sc_file_system = ^NEWS$$
diff --git a/gzip.c b/gzip.c
index 93cc738..956e8b6 100644
--- a/gzip.c
+++ b/gzip.c
@@ -29,7 +29,7 @@
*/
static char const *const license_msg[] = {
-"Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.",
+"Copyright (C) 2013 Free Software Foundation, Inc.",
"Copyright (C) 1993 Jean-loup Gailly.",
"This is free software. You may redistribute copies of it under the terms of",
"the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.",
--
1.8.3.251.g1462b67