diff Mac/BuildScript/scripts/postflight.patch-profile @ 64974:9523dbe0b649

Add support for the ZSH shell to the "Update Shell Profile" script on MacOSX. Patch by Sylvain Mora, issue #9701.
author Ronald Oussoren <ronaldoussoren@mac.com>
date Tue, 28 Sep 2010 13:57:58 +0000
parents 24d1e06c629c
children
line wrap: on
line diff
--- a/Mac/BuildScript/scripts/postflight.patch-profile	Tue Sep 28 09:46:48 2010 +0000
+++ b/Mac/BuildScript/scripts/postflight.patch-profile	Tue Sep 28 13:57:58 2010 +0000
@@ -20,7 +20,7 @@
 # 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 @@
 		PR="${HOME}/.bash_profile"
 	fi
 	;;
+zsh)
+        PR="${HOME}/.zprofile"
+        ;;
 *sh)
 	PR="${HOME}/.profile"
 	;;