[PATCH] osx: stamp the hg version into the version field in the pkg
Kevin Bullock
kbullock+mercurial at ringworld.org
Mon Aug 15 12:00:45 EDT 2016
> On Aug 12, 2016, at 16:52, Augie Fackler <raf at durin42.com> wrote:
>
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1471038708 14400
> # Fri Aug 12 17:51:48 2016 -0400
> # Node ID 43a4c2b71bd23dc603345bf34dced201ff4df1d8
> # Parent f2241c13d5a1100f44278496fe58c05d364b97f8
> 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.
Fails on OS X 10.10 (XCode 7.2.1):
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}"
Usage: pkgbuild [options] --root <root-path> [--component-plist <plist-path>] <package-output-path>
Build a package from an xcodebuild destination root
Usage: pkgbuild --analyze --root <root-path> <plist-output-path>
Create template component plist from an xcodebuild destination root
Usage: pkgbuild [options] {--component <component-path>} <package-output-path>
Build a package from one or more previously-built bundles
See pkgbuild(1) for details.
make: *** [osx] Error 1
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
(how many 10s can an OS X ten if an OS X can 10.10?)
More information about the Mercurial-devel
mailing list