Merge pull request #6 from dyashkir/master

Simple check to make sure $DEVELOPER directory exists
This commit is contained in:
Felix Schulze 2012-07-11 11:54:54 -07:00
commit f9549f3376
1 changed files with 10 additions and 1 deletions

View File

@ -35,6 +35,15 @@ CURRENTPATH=`pwd`
ARCHS="i386 armv6 armv7"
DEVELOPER=`xcode-select -print-path`
if [ ! -d "$DEVELOPER" ]; then
echo "xcode path is not set correctly $DEVELOPER does not exist (most likely because of xcode 4.3)"
echo "run"
echo "sudo xcode-select -switch <xcode path>"
echo "for default installation:"
echo "sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer"
exit 1
fi
set -e
if [ ! -e openssl-${VERSION}.tar.gz ]; then
echo "Downloading openssl-${VERSION}.tar.gz"