Corrected file check
This commit is contained in:
parent
3ee6ed46e9
commit
d11db8854e
1 changed files with 13 additions and 2 deletions
|
@ -18,19 +18,30 @@ fi
|
|||
echo "About to test ..."
|
||||
if [ -d $TMPROOT/openssl/ios-openssl ] ; then
|
||||
echo "ios-openssl folder found. Looking for binary..."
|
||||
if [ ! $TMPROOT/openssl/ios-openssl/lib/libssl.a ] ; then
|
||||
if [ ! -e $TMPROOT/openssl/ios-openssl/lib/libssl.a ] ; then
|
||||
echo "Binary not found. Building..."
|
||||
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
|
||||
else
|
||||
echo "Binaries found. Skipping build..."
|
||||
fi
|
||||
else
|
||||
echo "Folder found. Pulling latest..."
|
||||
try pushd .
|
||||
cd $TMPROOT/openssl/ios-openssl
|
||||
git pull
|
||||
try popd
|
||||
fi
|
||||
|
||||
# Copy the binaries to the appropriate places.
|
||||
if [ $TMPROOT/openssl/ios-openssl/lib/libssl.a ] ; then
|
||||
echo "Copying built OpenSSL binaries..."
|
||||
cp $TMPROOT/openssl/ios-openssl/lib/libssl.a $BUILDROOT/lib/libssl.a
|
||||
cp $TMPROOT/openssl/ios-openssl/lib/libcrypto.a $BUILDROOT/lib/libcrypto.a
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue