[MLton-commit] r7482

Wesley Terpstra wesley at mlton.org
Fri Jun 11 07:11:26 PDT 2010


Include a 'release' version number in the MinGW packages.
This wasn't necessary before since they were all svn snapshots.


----------------------------------------------------------------------

U   mlton/trunk/package/mingw/Makefile

----------------------------------------------------------------------

Modified: mlton/trunk/package/mingw/Makefile
===================================================================
--- mlton/trunk/package/mingw/Makefile	2010-06-11 05:11:53 UTC (rev 7481)
+++ mlton/trunk/package/mingw/Makefile	2010-06-11 14:11:26 UTC (rev 7482)
@@ -6,12 +6,12 @@
 PKG_WIXOBJ=$(patsubst %,%.wixobj,$(PKG))
 
 ifeq (,$(VERSION))
-VERSION := $(shell date +%Y%m%d)
+VERSION := $(shell date +%Y%m%d)-1
 endif
 
 # Windows versions have to be (0-255).(0-255).(0-65536)
 # So lets just use YY.MM.DD for the version (leading 0s stripped)
-WINVERSION := $(shell echo $(VERSION) | sed -r 's/20(..)(..)(..)/\1.\2.\3/;s/0*([1-9]+)/\1/g')
+WINVERSION := $(shell echo $(VERSION) | sed -r 's/20([0-9][0-9])([0-9][0-9])([0-9][0-9])-([0-9]+)/\1.\2.\3.\4/;s/0*([1-9]+)/\1/g')
 
 all:	MLton-$(VERSION).exe MLton-$(VERSION).msi
 




More information about the MLton-commit mailing list