From ddf1e1b2d6b970544377e3891b9b5755eed63d3b Mon Sep 17 00:00:00 2001 From: Jim Meyering 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. Reported 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 f39c6fe..1fffb58 100644 --- a/cfg.mk +++ b/cfg.mk @@ -56,6 +56,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 d77fc41..e69c3e0 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) 2015 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 .", -- 2.47.2