bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: announce: cvs pserver (read-only) access to the git mirror


From: Bruno Haible
Subject: Re: announce: cvs pserver (read-only) access to the git mirror
Date: Mon, 17 Sep 2007 12:26:28 +0200
User-agent: KMail/1.5.4

Jim Meyering wrote:
> > - The expansion of dates is different (see attached diff). Here the 
> > git-based
> >   server uses ISO 8601 notation. (Not that it's bad. It's just different.)
> >
> > - Regarding the dates in "cvs log", it's the opposite: Here the original
> >   CVS uses ISO 8601 notation, and the git-based one doesn't.
> 
> I don't think any of those are show-stoppers.  Do you?

They are not show-stoppers. But I need to fix "gnulib-tool --version" output
nevertheless:

2007-09-17  Bruno Haible  <address@hidden>

        * gnulib-tool (func_version): Use $version.

--- gnulib-tool 16 Sep 2007 00:41:34 -0000      1.258
+++ gnulib-tool 17 Sep 2007 10:23:39 -0000
@@ -24,7 +24,9 @@
 package=gnulib
 cvsdatestamp='$Date: 2007/09/16 00:41:34 $'
 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]