date from mkvers.sh

Pierre A. Humblet Pierre.Humblet@ieee.org
Mon Apr 14 01:58:00 GMT 2003


CYGWIN_ME-4.90 hpn5170x 1.3.23(0.82/3/2) 2003-04-010 21:49 i686 unknown
unknown Cygwin

Note the weird day in the date field.
There is a fix below but why not simply use  date "+%F %R" ? 

Pierre

2003-04-13  Pierre Humblet  <pierre.humblet@ieee.org>

	* mkvers.sh: Prefix day with 0 in date only when day < 10.


Index: mkvers.sh
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/mkvers.sh,v
retrieving revision 1.14
diff -u -p -r1.14 mkvers.sh
--- mkvers.sh   13 Jan 2002 20:03:03 -0000      1.14
+++ mkvers.sh   13 Apr 2003 21:34:34 -0000
@@ -45,7 +45,7 @@ case "$2" in
     Dec) m=12 ;;
 esac
 
-if [ "$3" -le 10 ]; then
+if [ "$3" -lt 10 ]; then
     d=0$3
 else
     d=$3
 



More information about the Cygwin-patches mailing list