Fix strange results when using a zsh
--HG-- branch : bgschaid/minorAdditionsBranch
This commit is contained in:
parent
823c6c0c18
commit
751568a632
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue