Updated mac build script.

This commit is contained in:
Armin Novak 2016-07-21 16:10:41 +02:00
parent 7818ca1250
commit aad0a5cd5d

View File

@ -9,8 +9,8 @@
## Settings
# openssl version to use
OPENSSLVERSION="1.0.2a"
MD5SUM="a06c547dac9044161a477211049f60ef"
OPENSSLVERSION="1.0.2h"
SHA256SUM="1d4007e53aad94a5b2002fe045ee7bb0b3d98f1a47f8b2bc851dcd1c74332919"
# SDK version to use - if not set latest version found is used
SDK_VERSION=""
@ -98,14 +98,14 @@ if [ ! -d openssl ];then
mkdir openssl
fi
cd openssl
CS=`md5 -q "openssl-$OPENSSLVERSION.tar.gz" 2>/dev/null`
if [ ! "$CS" = "$MD5SUM" ]; then
CS=`shasum -a 256 "openssl-$OPENSSLVERSION.tar.gz" | cut -d ' ' -f1`
if [ ! "$CS" = "$SHA256SUM" ]; then
echo "Downloading OpenSSL Version $OPENSSLVERSION ..."
rm -f "openssl-$OPENSSLVERSION.tar.gz"
curl -o "openssl-$OPENSSLVERSION.tar.gz" http://www.openssl.org/source/openssl-$OPENSSLVERSION.tar.gz
curl -o "openssl-$OPENSSLVERSION.tar.gz" https://www.openssl.org/source/openssl-$OPENSSLVERSION.tar.gz
CS=`md5 -q "openssl-$OPENSSLVERSION.tar.gz" 2>/dev/null`
if [ ! "$CS" = "$MD5SUM" ]; then
CS=`shasum -a 256 "openssl-$OPENSSLVERSION.tar.gz" | cut -d ' ' -f1`
if [ ! "$CS" = "$SHA256SUM" ]; then
echo "Download failed or invalid checksum. Have a nice day."
exit 1
fi