[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib-tool --version
From: |
Eric Blake |
Subject: |
Re: gnulib-tool --version |
Date: |
Fri, 14 Mar 2008 14:54:12 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Eric Blake <ebb9 <at> byu.net> writes:
> > All fine. (Except that the "gnulib-tool --version" result did not change
> > since we moved from CVS to git. We need to fix this...)
>
> Done as follows.
And this followup, so that gnulib-cache.m4 and friends also show the correct
copyright year. Since func_emit_copyright_notice occurs too late in the file
for emacs' copyright updating hooks to recognize it, I changed it to be dynamic
output based on gnulib-tool's copyright rather than hard-coded output, so we
don't have to make changes again next year.
From: Eric Blake <address@hidden>
Date: Fri, 14 Mar 2008 08:46:18 -0600
Subject: [PATCH] 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 <address@hidden>
---
ChangeLog | 4 ++++
gnulib-tool | 5 ++++-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 214c64c..a58f637 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2008-03-14 Eric Blake <address@hidden>
+ 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.
diff --git a/gnulib-tool b/gnulib-tool
index 523812b..e7dbe53 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -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"
--
1.5.4
- Problems with stdio.h, Gabriele Bartolini, 2008/03/13
- Re: Problems with stdio.h, Bruno Haible, 2008/03/13
- R: Problems with stdio.h, Gabriele Bartolini, 2008/03/14
- gnulib-tool --version [was: Problems with stdio.h], Eric Blake, 2008/03/14
- Re: gnulib-tool --version,
Eric Blake <=
- Re: gnulib-tool --version, Bruno Haible, 2008/03/14
- Re: gnulib-tool --version, Eric Blake, 2008/03/14
- Re: gnulib-tool --version, Bruno Haible, 2008/03/14
- Re: gnulib-tool --version, Bruno Haible, 2008/03/15
- Re: gnulib-tool --version, Eric Blake, 2008/03/15
- Re: gnulib-tool --version, Bob Proulx, 2008/03/15
- Re: gnulib-tool --version, Jim Meyering, 2008/03/15
- Re: gnulib-tool --version, Bruno Haible, 2008/03/23
- Re: gnulib-tool --version, Jim Meyering, 2008/03/23
- Re: gnulib-tool --version, Bruno Haible, 2008/03/23