Makefile
changeset 22358 198e2da3ee20
parent 22308 246b6a9c8d8f
child 22375 308ab71207ff
--- a/Makefile	Sat Aug 30 12:33:12 2014 +0200
+++ b/Makefile	Sun Aug 31 10:24:25 2014 +0200
@@ -137,10 +137,11 @@
 osx:
 	@which bdist_mpkg >/dev/null || \
 	   (echo "Missing bdist_mpkg (easy_install bdist_mpkg)"; false)
+	rm -rf dist/mercurial-*.mpkg
 	bdist_mpkg setup.py
 	mkdir -p packages/osx
+	N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" -ov packages/osx/$$N.dmg
 	rm -rf dist/mercurial-*.mpkg
-	mv dist/mercurial*macosx*.zip packages/osx
 
 fedora:
 	mkdir -p packages/fedora