[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] version: fix copyright year
From: |
Paolo Bonzini |
Subject: |
[PATCH] version: fix copyright year |
Date: |
Mon, 30 Aug 2010 10:00:11 +0200 |
* configure.ac: Add COPYRIGHT_YEAR #define.
* README-release: Document it.
* src/main.c (main): Use it.
---
README-release | 3 +++
configure.ac | 1 +
src/main.c | 4 ++--
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/README-release b/README-release
index 0df5ff5..5be29b2 100644
--- a/README-release
+++ b/README-release
@@ -4,6 +4,9 @@ Here are most of the steps we (maintainers) follow when making
a release.
git checkout master; git pull
+* Ensure that COPYRIGHT_YEAR is correct in configure.ac. If not, update
+ it and commit the change.
+
* Run ./configure && make maintainer-clean
* Ensure that the desired versions of autoconf, automake, etc.
diff --git a/configure.ac b/configure.ac
index 01ae0f2..744fa00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,7 @@ AC_INIT([GNU grep],
AC_CONFIG_AUX_DIR(build-aux)
AC_CONFIG_SRCDIR(src/grep.c)
AC_DEFINE([GREP], 1, [We are building grep])
+AC_DEFINE([COPYRIGHT_YEAR], 2010, [Copyright year for --version.])
AC_PREREQ(2.59)
dnl Automake stuff.
diff --git a/src/main.c b/src/main.c
index 5314912..e4ea374 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2158,11 +2158,11 @@ main (int argc, char **argv)
{
printf ("%s\n\n", PACKAGE_STRING);
printf (_("\
-Copyright (C) %s Free Software Foundation, Inc.\n\
+Copyright (C) %d Free Software Foundation, Inc.\n\
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\n\
This is free software: you are free to change and redistribute it.\n\
There is NO WARRANTY, to the extent permitted by law.\n"),
- "2009");
+ COPYRIGHT_YEAR);
printf ("\n");
exit (EXIT_SUCCESS);
}
--
1.7.1
- [PATCH] version: fix copyright year,
Paolo Bonzini <=
- Re: [PATCH] version: fix copyright year, Jim Meyering, 2010/08/30
- Re: [PATCH] version: fix copyright year, Paolo Bonzini, 2010/08/30
- Re: [PATCH] version: fix copyright year, Jim Meyering, 2010/08/30
- Re: [PATCH] version: fix copyright year, Paolo Bonzini, 2010/08/30
- Re: [PATCH] version: fix copyright year, Jim Meyering, 2010/08/30
- Re: [PATCH] version: fix copyright year, Paolo Bonzini, 2010/08/30
- Re: [PATCH] version: fix copyright year, Jim Meyering, 2010/08/30