changeset 9794:0675687268a7

Bump copyright year in files generated by gnulib-tool. * gnulib-tool (func_emit_copyright_notice): Extract copyright from gnulib-tool, rather than hard-coding it. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Fri, 14 Mar 2008 08:46:18 -0600
parents f899dba61804
children bf79dbf4257f
files ChangeLog gnulib-tool
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-03-14  Eric Blake  <ebb9@byu.net>
 
+	Bump copyright year in files generated by gnulib-tool.
+	* gnulib-tool (func_emit_copyright_notice): Extract copyright from
+	gnulib-tool, rather than hard-coding it.
+
 	Fix 'gnulib-tool --version' output to work with git.
 	* gnulib-tool (func_gnulib_dir): New function, extracted from...
 	(startup): ...here.
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -211,7 +211,10 @@
 # outputs to stdout a header for a generated file.
 func_emit_copyright_notice ()
 {
-  echo "# Copyright (C) 2004-2007 Free Software Foundation, Inc."
+  sed -n '/Copyright/ {
+            p
+            q
+          }' < "$self_abspathname"
   echo "#"
   echo "# This file is free software, distributed under the terms of the GNU"
   echo "# General Public License.  As a special exception to the GNU General"