make: add a basic osx mpkg target
authorMatt Mackall <mpm@selenic.com>
Tue, 27 May 2014 11:39:22 -0700
changeset 21559 9a9de26ad99a
parent 21558 8b482d49563b
child 21560 a9e1ab2da30d
make: add a basic osx mpkg target
Makefile
--- a/Makefile	Tue May 27 10:31:59 2014 -0700
+++ b/Makefile	Tue May 27 11:39:22 2014 -0700
@@ -134,6 +134,14 @@
 
 # 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