Ticket #3884: build-osx-bundle-sh.diff

File build-osx-bundle-sh.diff, 1.0 KB (added by jurgemaister, 8 years ago)
  • build/workspaces/build-osx-bundle.sh

     
    2222# Choices are "x86_64" or  "i386" (ppc and ppc64 not supported)
    2323export ARCH=${ARCH:="x86_64"}
    2424
     25OSX_VERSION=`sw_vers -productVersion | grep -Eo "^\d+.\d+"`
    2526# Set SDK and mimimum required OS X version
    26 export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"}
     27export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk"}
    2728export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.7"}
    2829
    2930# 0 A.D. release version, e.g. Alpha 18 is 0.0.18
     
    5051if [ "`uname -s`" != "Darwin" ]; then
    5152  die "This script is intended for OS X only"
    5253fi
    53  
     54
    5455# Check SDK exists
    5556if [ ! -d "$SYSROOT" ]; then
    5657  die "$SYSROOT does not exist! You probably need to install Xcode"