This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

date from mkvers.sh


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 dot humblet at ieee dot 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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]