Skip building if binaries exist

This commit is contained in:
Richard Larkin 2014-05-15 11:47:38 +02:00
parent c8cc6d73dc
commit 03dd1a494b

View file

@ -15,17 +15,21 @@ if [ ! -d $TMPROOT/openssl/ios-openssl ] ; then
try popd try popd
fi fi
# Build the required binaries # Build the required binaries if not found (long process)
if [ -d $TMPROOT/openssl/ios-openssl ] ; then if [ ! -f $BUILDROOT/lib/libssl.a ] ; then
echo "ios-openssl repo found. Building now..." if [ -d $TMPROOT/openssl/ios-openssl ] ; then
if [ ! -d $TMPROOT/openssl/ios-openssl/lib ] ; then echo "ios-openssl repo found. Building now..."
try mkdir $TMPROOT/openssl/ios-openssl/lib if [ ! -d $TMPROOT/openssl/ios-openssl/lib ] ; then
try mkdir $TMPROOT/openssl/ios-openssl/lib
fi
try pushd .
cd $TMPROOT/openssl/ios-openssl
# Please refer to the script below for details of the OpenSSL build
sh build.sh
try popd
fi fi
try pushd . else
cd $TMPROOT/openssl/ios-openssl echo "Skipping build. Binary found: $BUILDROOT/lib/libssl.a"
# Please refer to the script below for details of the OpenSSL build
sh build.sh
try popd
fi fi
echo "Copying built OpenSSL binaries..." echo "Copying built OpenSSL binaries..."