[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gawk 3.1.4 copyright date problem
From: |
Paul Eggert |
Subject: |
Gawk 3.1.4 copyright date problem |
Date: |
Tue, 24 Aug 2004 10:38:34 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
The behavior I see is this:
$ gawk --version | sed 2q
GNU Awk 3.1.4
Copyright (C) 1989, 1991-2003 Free Software Foundation.
The date should be "2004". While we're on the subject, the GNU coding
standards say that in --version output the "copyright notice only
needs to mention the most recent year in which changes were
made---there's no need to list the years for previous versions'
changes."
Here's a patch.
2004-08-24 Paul Eggert <address@hidden>
* main.c (copyleft): Output only the most recent copyright year,
as per the GNU coding standards. Update year to 2004.
diff -pru gawk-3.1.4/main.c gawk-3.1.4-copyright/main.c
--- gawk-3.1.4/main.c 2004-07-28 06:42:19 -0700
+++ gawk-3.1.4-copyright/main.c 2004-08-24 10:35:52 -0700
@@ -682,7 +682,7 @@ static void
copyleft()
{
static const char blurb_part1[] =
- N_("Copyright (C) 1989, 1991-%d Free Software Foundation.\n\
+ N_("Copyright (C) %d Free Software Foundation.\n\
\n\
This program is free software; you can redistribute it and/or modify\n\
it under the terms of the GNU General Public License as published by\n\
@@ -701,7 +701,7 @@ along with this program; if not, write t
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.\n");
/* multiple blurbs are needed for some brain dead compilers. */
- printf(_(blurb_part1), 2003); /* Last update year */
+ printf(_(blurb_part1), 2004); /* Last update year */
fputs(_(blurb_part2), stdout);
fputs(_(blurb_part3), stdout);
fflush(stdout);