# HG changeset patch # User Augie Fackler # Date 1471038708 14400 # Node ID afa74947a41414738e1d4e82036b2b95ff11ed6d # Parent 279cd80059d41bbdb91ea9073278cbbe7f1b43d5 osx: stamp the hg version into the version field in the pkg This is required for tools like https://github.com/munki/munki, and is also more semantically correct. diff -r 279cd80059d4 -r afa74947a414 Makefile --- a/Makefile Thu Jul 28 14:18:01 2016 +0200 +++ b/Makefile Fri Aug 12 17:51:48 2016 -0400 @@ -164,10 +164,12 @@ --install-lib=/Library/Python/2.7/site-packages/ make -C doc all install DESTDIR="$(PWD)/build/mercurial/" mkdir -p $${OUTPUTDIR:-dist} - pkgbuild --root build/mercurial/ --identifier org.mercurial-scm.mercurial \ - build/mercurial.pkg HGVER=$$((cat build/mercurial/Library/Python/2.7/site-packages/mercurial/__version__.py; echo 'print(version)') | python) && \ OSXVER=$$(sw_vers -productVersion | cut -d. -f1,2) && \ + pkgbuild --root build/mercurial/ \ + --identifier org.mercurial-scm.mercurial \ + --version "$${HGVER}" \ + build/mercurial.pkg && \ productbuild --distribution contrib/macosx/distribution.xml \ --package-path build/ \ --version "$${HGVER}" \