changeset 29023:e2a553ae1edc stable

osx: add support for dumping built dmg into OUTPUTDIR
author Augie Fackler <augie@google.com>
date Mon, 18 Apr 2016 23:57:22 -0400
parents d78e00e4be7c
children fe364d8797c3
files Makefile
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Apr 18 23:55:58 2016 -0400
+++ b/Makefile	Mon Apr 18 23:57:22 2016 -0400
@@ -161,8 +161,11 @@
 	rm -rf dist/mercurial-*.mpkg
 	python -m bdist_mpkg.script_bdist_mpkg setup.py --
 	python contrib/fixpax.py dist/mercurial-*.mpkg/Contents/Packages/*.pkg/Contents/Archive.pax.gz
-	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
+	OUTPUTDIR=$${OUTPUTDIR:=packages/osx} && \
+	  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
 
 deb: