More --version tweaks.
authorEric Blake <ebb9@byu.net>
Fri, 21 Mar 2008 13:16:51 +0000 (07:16 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 21 Mar 2008 13:22:24 +0000 (07:22 -0600)
* gnulib-tool (func_version): Obey GNU Coding Standards.  Output
date of last ChangeLog entry.

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

index 4be3f75..c34d25d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-21  Eric Blake  <ebb9@byu.net>
+
+       More --version tweaks.
+       * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
+       date of last ChangeLog entry.
+
 2008-03-21  Jim Meyering  <meyering@redhat.com>
 
        * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
index e7dbe53..be206e7 100755 (executable)
@@ -195,10 +195,11 @@ Report bugs to <bug-gnulib@gnu.org>."
 func_version ()
 {
   func_gnulib_dir
+  date=`sed 's/ .*//;q' "$gnulib_dir"/ChangeLog`
   version=`"$gnulib_dir"/build-aux/git-version-gen /dev/null`
   year=`"$gnulib_dir"/build-aux/mdate-sh "$self_abspathname" | sed 's,^.* ,,'`
   echo "\
-$progname (GNU $package) $version
+gnulib-tool (GNU $package $date) $version
 Copyright (C) $year Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.