summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-09-28 14:01:49 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-09-28 14:01:49 (GMT)
commitec2fe0063943b810e5a1b41282e79c49597637a0 (patch)
tree6c84f6db1c19c63ec1255ff5663b94d2438b3d83 /Mac
parent3b47b6c04ca2b2d3a4c02f05e6406c7a07c51b84 (diff)
downloadcpython-ec2fe0063943b810e5a1b41282e79c49597637a0.zip
cpython-ec2fe0063943b810e5a1b41282e79c49597637a0.tar.gz
cpython-ec2fe0063943b810e5a1b41282e79c49597637a0.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. ........
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/BuildScript/scripts/postflight.patch-profile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/BuildScript/scripts/postflight.patch-profile b/Mac/BuildScript/scripts/postflight.patch-profile
index d9ff328..a66b8c7 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"
;;