Bump copyright year in files generated by gnulib-tool.
authorEric Blake <ebb9@byu.net>
Fri, 14 Mar 2008 14:46:18 +0000 (08:46 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 14 Mar 2008 14:52:15 +0000 (08:52 -0600)
* gnulib-tool (func_emit_copyright_notice): Extract copyright from
gnulib-tool, rather than hard-coding it.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
gnulib-tool

index 214c64c5ede172325d84e6634d12384604db1682..a58f6378569179ea2f852bdde5f81c8318b5b8ce 100644 (file)
--- 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.
index 523812b9f55955589a7446036f836840c8c8e7f6..e7dbe53dbcc1202cfb9ec879e10d4b5ed10b2cc9 100755 (executable)
@@ -211,7 +211,10 @@ Written by" "Bruno Haible" "and" "Simon Josefsson"
 # 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"