mirror of
https://github.com/passepartoutvpn/openssl-apple.git
synced 2025-02-21 23:32:07 +00:00
added check that xcode-path return existing directory, to check xcode 4.3 command line tools install issue
This commit is contained in:
parent
a095890c63
commit
e1a32b5db2
@ -35,6 +35,15 @@ CURRENTPATH=`pwd`
|
|||||||
ARCHS="i386 armv6 armv7"
|
ARCHS="i386 armv6 armv7"
|
||||||
DEVELOPER=`xcode-select -print-path`
|
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
|
set -e
|
||||||
if [ ! -e openssl-${VERSION}.tar.gz ]; then
|
if [ ! -e openssl-${VERSION}.tar.gz ]; then
|
||||||
echo "Downloading openssl-${VERSION}.tar.gz"
|
echo "Downloading openssl-${VERSION}.tar.gz"
|
||||||
@ -87,4 +96,4 @@ cp -R ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/include/openssl $
|
|||||||
echo "Building done."
|
echo "Building done."
|
||||||
echo "Cleaning up..."
|
echo "Cleaning up..."
|
||||||
rm -rf ${CURRENTPATH}/src/openssl-${VERSION}
|
rm -rf ${CURRENTPATH}/src/openssl-${VERSION}
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
Loading…
Reference in New Issue
Block a user