make: add a basic osx mpkg target
authorMatt Mackall <mpm@selenic.com>
Tue, 27 May 2014 11:39:22 -0700
changeset 21559 9a9de26ad99af37a8d39494c3c600d1a5a011622
parent 21558 8b482d49563b285bff3b494812121764515ec35c
child 21560 a9e1ab2da30d3ec9e81af14c78f08664f9dd8b2f
push id1
push usergszorc@mozilla.com
push dateWed, 18 Mar 2015 16:34:57 +0000
make: add a basic osx mpkg target
Makefile
--- a/Makefile
+++ b/Makefile
@@ -129,16 +129,24 @@ i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n
 %.po: i18n/hg.pot
         # work on a temporary copy for never having a half completed target
 	cp $@ $@.tmp
 	msgmerge --no-location --update $@.tmp $^
 	mv -f $@.tmp $@
 
 # Packaging targets
 
+osx:
+	@which -s bdist_mpkg || \
+	   (echo "Missing bdist_mpkg (easy_install bdist_mpkg)"; false)
+	bdist_mpkg setup.py
+	mkdir -p build/osx
+	rm -rf dist/mercurial-*.mpkg
+	mv dist/mercurial*macosx*.zip build/osx
+
 fedora:
 	mkdir -p build/fedora
 	echo y | contrib/buildrpm
 	cp rpmbuild/RPMS/*/* build/fedora
 	cp rpmbuild/SRPMS/* build/fedora
 	rm -rf rpmbuild
 
 docker-fedora: