osx: add support for keeping mpkgs
This is a bit of a hack, but I don't really want to mount a dmg during
a test, and I don't see an option with hdiutil to take a dmg and spit
out a folder, so this is what we've got for now.
--- a/Makefile Mon Apr 18 23:57:22 2016 -0400
+++ b/Makefile Mon Apr 18 23:59:28 2016 -0400
@@ -165,8 +165,9 @@
mkdir -p $$OUTPUTDIR && \
N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && \
hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" \
- -ov $$OUTPUTDIR/$$N.dmg
- rm -rf dist/mercurial-*.mpkg
+ -ov $$OUTPUTDIR/$$N.dmg && \
+ [ -n "$$KEEPMPKG" ] && mv dist/mercurial-*.mpkg $$OUTPUTDIR || \
+ rm -rf dist/mercurial-*.mpkg
deb:
contrib/builddeb