[MLton-commit] r7383

Wesley Terpstra wesley at mlton.org
Fri Dec 11 18:03:38 PST 2009


Add a 'release' target to make MLton release (or snapshot) tarballs.


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

U   mlton/trunk/Makefile
U   mlton/trunk/package/debian/changelog
U   mlton/trunk/package/debian/rules

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

Modified: mlton/trunk/Makefile
===================================================================
--- mlton/trunk/Makefile	2009-12-12 01:50:29 UTC (rev 7382)
+++ mlton/trunk/Makefile	2009-12-12 02:03:38 UTC (rev 7383)
@@ -408,6 +408,13 @@
 	cd "$(TLIB)/sml"; for i in */[Dd]oc; do mv "$$i" "$(TDOC)/$$i"; done
 	cd "$(TLIB)/sml"; for i in */README*; do mv "$$i" "$(TDOC)/$$i"; done
 
+.PHONY: release
+release: version
+	tar cvzf ../mlton-$(VERSION).tar.gz \
+		--exclude .svn --exclude packaging \
+		--transform "s@^@mlton-$(VERSION)/@" \
+		*
+
 BSDSRC := /tmp/mlton-$(VERSION)
 .PHONY: freebsd
 freebsd:

Modified: mlton/trunk/package/debian/changelog
===================================================================
--- mlton/trunk/package/debian/changelog	2009-12-12 01:50:29 UTC (rev 7382)
+++ mlton/trunk/package/debian/changelog	2009-12-12 02:03:38 UTC (rev 7383)
@@ -1,4 +1,4 @@
-mlton (20091212~svn-r7382) unstable; urgency=low
+mlton (20091212~svn-r7383) unstable; urgency=low
 
   * New snapshot from svn/HEAD
    * Works around incompatible change to 'patch' (closes: #560623)

Modified: mlton/trunk/package/debian/rules
===================================================================
--- mlton/trunk/package/debian/rules	2009-12-12 01:50:29 UTC (rev 7382)
+++ mlton/trunk/package/debian/rules	2009-12-12 02:03:38 UTC (rev 7383)
@@ -13,7 +13,7 @@
 DEB_COMPRESS_EXCLUDE = mlton/guide .sml
 
 DEB_MAKE_CLEAN_TARGET   = clean clean-svn
-DEB_MAKE_BUILD_TARGET   = all RUNTIME_ARGS="fixed-heap $(HEAPSIZE)" VERSION=$(DEB_VERSION)
+DEB_MAKE_BUILD_TARGET   = all RUNTIME_ARGS="fixed-heap $(HEAPSIZE)"
 DEB_MAKE_INSTALL_TARGET = install-no-strip DESTDIR=$(CURDIR)/debian/tmp/ PREFIX=/usr MAN_PREFIX_EXTRA=/share
 DEB_MAKE_CHECK_TARGET   = check
 




More information about the MLton-commit mailing list