mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
Make "gnulib-tool --version" work in git-cvsserver checkout.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2007-09-17 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* gnulib-tool (func_version): Use $version.
|
||||
|
||||
2007-09-16 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
|
||||
|
||||
@@ -22,9 +22,11 @@
|
||||
|
||||
progname=$0
|
||||
package=gnulib
|
||||
cvsdatestamp='$Date: 2007-09-16 00:41:34 $'
|
||||
cvsdatestamp='$Date: 2007-09-17 10:26:33 $'
|
||||
last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
|
||||
# Sometimes last_checkin_date is "YYYY/MM/DD ...", sometimes "YYYY-MM-DD ...".
|
||||
version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
|
||||
# version is in YYYY-MM-DD format.
|
||||
nl='
|
||||
'
|
||||
IFS=" "" $nl"
|
||||
@@ -196,7 +198,7 @@ Report bugs to <bug-gnulib@gnu.org>."
|
||||
# outputs to stdout the --version message.
|
||||
func_version ()
|
||||
{
|
||||
year=`echo "$last_checkin_date" | sed -e 's,/.*$,,'`
|
||||
year=`echo "$version" | sed -e 's,-.*$,,'`
|
||||
echo "\
|
||||
$progname (GNU $package) $version
|
||||
Copyright (C) $year Free Software Foundation, Inc.
|
||||
|
||||
Reference in New Issue
Block a user