-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Bruno Haible on 3/14/2008 5:52 PM: | Well, what do I do with this result? | | This does not tell me anything. If in 6 months sometimes says "my gnulib | is version 0.0.430-8915-dirty", how do I find out what date it is? (So that | I can look up in the ChangeLog which modifications it contains and which | came later?)
OK, I'm adding the latest ChangeLog date to the output (the GCS allows additional version information inside the parenthesis). In the process, I'm fixing it to obey GCS, which requires the canonical program name, rather than argv[0], in the first line of --version output. | - In a cvs checkout | $ ./gnulib-tool --version | ./gnulib-tool (GNU gnulib) UNKNOWN You still get UNKNOWN, but at least it now includes a date stamp. $ gnulib-cvs/gnulib-tool --version gnulib-tool (GNU gnulib 2008-03-21) UNKNOWN - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfjtmIACgkQ84KuGfSFAYCUqQCfWzofynpKVEIGFNw0gy7WQrsb 3hUAnja/ndidZKkWsPpBMRFU9e6a4Av3 =Qz8Z -----END PGP SIGNATURE-----
>From 7342f807b6530b3c2040607d6be5cb87764b0c79 Mon Sep 17 00:00:00 2001 From: Eric Blake <[EMAIL PROTECTED]> Date: Fri, 21 Mar 2008 07:16:51 -0600 Subject: [PATCH] More --version tweaks. * gnulib-tool (func-version): Obey GNU Coding Standards. Output date of last ChangeLog entry. Signed-off-by: Eric Blake <[EMAIL PROTECTED]> --- ChangeLog | 6 ++++++ gnulib-tool | 3 ++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4be3f75..e527f24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-21 Eric Blake <[EMAIL PROTECTED]> + + More --version tweaks. + * gnulib-tool (func-version): Obey GNU Coding Standards. Output + date of last ChangeLog entry. + 2008-03-21 Jim Meyering <[EMAIL PROTECTED]> * build-aux/GNUmakefile (_have-git-version-gen): Split long line. diff --git a/gnulib-tool b/gnulib-tool index e7dbe53..be206e7 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -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. -- 1.5.4