Fix strange results when using a zsh

--HG--
branch : bgschaid/minorAdditionsBranch
This commit is contained in:
Bernhard F.W. Gschaider 2013-07-11 19:19:57 +02:00 committed by Martin Beaudoin
parent 823c6c0c18
commit 751568a632

View file

@ -251,8 +251,12 @@ Darwin)
# Make sure that binaries use the best features of the used OS-Version # Make sure that binaries use the best features of the used OS-Version
# We need to get rid of the revision number from this string. eg turn "10.7.5" into "10.7" # We need to get rid of the revision number from this string. eg turn "10.7.5" into "10.7"
v=(`sw_vers -productVersion | sed 's/\./ /g'`)
export MACOSX_DEPLOYMENT_TARGET="${v[0]}.${v[1]}" # this gives strange results with some shells
# v=(`sw_vers -productVersion | sed 's/\./ /g'`)
# export MACOSX_DEPLOYMENT_TARGET="${v[0]}.${v[1]}"
export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion | sed -e "s/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2/g"`
if [ "$compilerInstall" == "System" ] if [ "$compilerInstall" == "System" ]
then then