show error if DEVROOT is not found on the disk

This commit is contained in:
Mathieu Virbel 2012-05-04 01:09:41 +02:00
parent 9a4448c35c
commit 748aeee2ed

View file

@ -11,6 +11,16 @@ export SDKVER=`xcodebuild -showsdks | fgrep "iphoneos" | tail -n 1 | awk '{print
export DEVROOT=`xcode-select -print-path`/Platforms/iPhoneOS.platform/Developer export DEVROOT=`xcode-select -print-path`/Platforms/iPhoneOS.platform/Developer
export SDKROOT=$DEVROOT/SDKs/iPhoneOS$SDKVER.sdk export SDKROOT=$DEVROOT/SDKs/iPhoneOS$SDKVER.sdk
if [ ! -d $DEVROOT ]; then
echo "Unable to found the Xcode iPhoneOS.platform"
echo
echo "The path is automatically set from 'xcode-select -print-path'"
echo " + /Platforms/iPhoneOS.platform/Developer"
echo
echo "Ensure 'xcode-select -print-path' is set."
exit 1
fi
# version of packages # version of packages
export PYTHON_VERSION=2.7.1 export PYTHON_VERSION=2.7.1
export SDLTTF_VERSION=2.0.10 export SDLTTF_VERSION=2.0.10