Ticket #3884: build-osx-bundle-sh.diff
File build-osx-bundle-sh.diff, 1.0 KB (added by , 8 years ago) |
---|
-
build/workspaces/build-osx-bundle.sh
22 22 # Choices are "x86_64" or "i386" (ppc and ppc64 not supported) 23 23 export ARCH=${ARCH:="x86_64"} 24 24 25 OSX_VERSION=`sw_vers -productVersion | grep -Eo "^\d+.\d+"` 25 26 # Set SDK and mimimum required OS X version 26 export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX 10.10.sdk"}27 export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk"} 27 28 export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.7"} 28 29 29 30 # 0 A.D. release version, e.g. Alpha 18 is 0.0.18 … … 50 51 if [ "`uname -s`" != "Darwin" ]; then 51 52 die "This script is intended for OS X only" 52 53 fi 53 54 54 55 # Check SDK exists 55 56 if [ ! -d "$SYSROOT" ]; then 56 57 die "$SYSROOT does not exist! You probably need to install Xcode"