Mercurial > hg > octave-lyh > gnulib-hg
changeset 9215:0c37ada6e2e9
Make "gnulib-tool --version" work in git-cvsserver checkout.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 17 Sep 2007 10:26:32 +0000 |
parents | 39a1b395c333 |
children | 7dc60fc8f2b4 |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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,
--- a/gnulib-tool +++ b/gnulib-tool @@ -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 @@ # 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.