Mercurial > hg
view contrib/macosx/macosx-build.txt @ 27991:5daf1a8c5f1d
tests: avoid nested quoting on command line for portability
Before this patch, test-revset.t fails on Solaris using ksh as default
"sh", because nested quoting below isn't acceptable for it.
+-----------------------------+ inner quoting
"`python -c "print '|'.join(['0:1'] * 500)"`"
+-------------------------------------------+ outer quoting
This patch does below for portability.
- omit outer quoting
This should be safe, because generated string contains no white
space character.
- use '+' instead of '|' (for safety)
'|' has special meaning for many shell, but '+' isn't (at least,
for ordinary ones).
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 05 Feb 2016 22:32:05 +0900 |
parents | 7289d20b18cd |
children |
line wrap: on
line source
to build a new macosx binary package: install macpython from http://www.python.org/download/mac install py2app from http://pythonmac.org/packages/ make sure /usr/local/bin is in your path run bdist_mpkg in top-level hg directory find packaged stuff in dist directory