diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-09-28 14:04:41 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-09-28 14:04:41 (GMT) |
commit | 478b2a816741ba2d6504944d35f73aeb4c84b446 (patch) | |
tree | 1f8fbbaa8781f8fd2cc9d6705b1b3681c6e7c64c | |
parent | 805ddaa3daeba06294973df7603e0d2f2014c4ff (diff) | |
download | cpython-478b2a816741ba2d6504944d35f73aeb4c84b446.zip cpython-478b2a816741ba2d6504944d35f73aeb4c84b446.tar.gz cpython-478b2a816741ba2d6504944d35f73aeb4c84b446.tar.bz2 |
Merged revisions 85059 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85059 | ronald.oussoren | 2010-09-28 15:57:58 +0200 (Tue, 28 Sep 2010) | 5 lines
Add support for the ZSH shell to the "Update Shell Profile" script
on MacOSX.
Patch by Sylvain Mora, issue #9701.
........
-rwxr-xr-x | Mac/BuildScript/scripts/postflight.patch-profile | 5 | ||||
-rw-r--r-- | Misc/NEWS | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Mac/BuildScript/scripts/postflight.patch-profile b/Mac/BuildScript/scripts/postflight.patch-profile index cbf4162..36d0a3e 100755 --- a/Mac/BuildScript/scripts/postflight.patch-profile +++ b/Mac/BuildScript/scripts/postflight.patch-profile @@ -20,7 +20,7 @@ fi # Make sure the directory ${PYTHON_ROOT}/bin is on the users PATH. BSH="`basename "${theShell}"`" case "${BSH}" in -bash|ksh|sh|*csh) +bash|ksh|sh|*csh|zsh) if [ `id -ur` = 0 ]; then P=`su - ${USER} -c 'echo A-X-4-X@@$PATH@@X-4-X-A' | grep 'A-X-4-X@@.*@@X-4-X-A' | sed -e 's/^A-X-4-X@@//g' -e 's/@@X-4-X-A$//g'` else @@ -76,6 +76,9 @@ bash) PR="${HOME}/.bash_profile" fi ;; +zsh) + PR="${HOME}/.zprofile" + ;; *sh) PR="${HOME}/.profile" ;; @@ -605,6 +605,10 @@ Build variable anymore. It also forwards the LDFLAGS settings to the linker when building a shared library. +- Issue #9701: The MacOSX installer can patch the shell profile to ensure that + the "bin" directory inside the framework is on the shell's search path. This + feature now also supports the ZSH shell. + Tests ----- |