Mercurial > hg
changeset 29024:fe364d8797c3 stable
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.
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 18 Apr 2016 23:59:28 -0400 |
parents | e2a553ae1edc |
children | f2549b0ba9ab |
files | Makefile |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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