[MLton-commit] r7312

Wesley Terpstra wesley at mlton.org
Wed Oct 28 07:21:04 PST 2009


I'm tired of running across MLton builds of unknown version.

This modification sets version to (in order of precedence):
	the value specified in "make version VERSION=x"
		... this applies to release tarballs
	the value provided on the command-line "make all VERSION=y"
		... allows a concrete version without source modification
	the svn version number from svnversion
		... r7208 indicates a clean svn checkout
		... r7208M a dirty checkout
		... rexported if no svn meta-data is available
	finally, runknown
		... meaning no svn installed and not a release build



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

U   mlton/trunk/mlton/Makefile

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

Modified: mlton/trunk/mlton/Makefile
===================================================================
--- mlton/trunk/mlton/Makefile	2009-10-28 14:36:49 UTC (rev 7311)
+++ mlton/trunk/mlton/Makefile	2009-10-28 15:21:03 UTC (rev 7312)
@@ -60,6 +60,7 @@
 
 control/version.sml: control/version_sml.src
 	cat control/version_sml.src |						\
+		sed "s/MLTONVERSION/$${VERSION:-r`svnversion||echo unknown`}/" |\
 		sed "s/\(.*\)MLTONBUILDDATE\(.*\)/\1`date`\2/" |		\
 		sed "s/\(.*\)MLTONBUILDNODE\(.*\)/\1`uname -n`\2/" >		\
 		control/version.sml




More information about the MLton-commit mailing list