aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2020-06-12 09:43:11 -0500
committerBrent Cook <busterb@gmail.com>2020-06-15 21:22:18 -0500
commitfd208a54936fd8212e91e71a54c1d48b14b37156 (patch)
tree816fb04090233643459531fb38c17aca0ea63622 /update.sh
parent61a1f6a57b9a324047c00410cc98c387df8c455d (diff)
downloadportable-fd208a54936fd8212e91e71a54c1d48b14b37156.tar.gz
portable-fd208a54936fd8212e91e71a54c1d48b14b37156.tar.bz2
portable-fd208a54936fd8212e91e71a54c1d48b14b37156.zip
add possibility to override upstream opensslv.h with a local version
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/update.sh b/update.sh
index bf12bee..cc1deb7 100755
--- a/update.sh
+++ b/update.sh
@@ -137,7 +137,13 @@ copy_hdrs $libcrypto_src "stack/stack.h lhash/lhash.h stack/safestack.h
137 137
138copy_hdrs $libssl_src "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h" 138copy_hdrs $libssl_src "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h"
139 139
140$CP $libcrypto_src/opensslv.h include/openssl 140# override upstream opensslv.h if a local version exists
141if [ -f patches/opensslv.h ]; then
142 $CP patches/opensslv.h include/openssl
143else
144 $CP $libcrypto_src/opensslv.h include/openssl
145fi
146
141awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION 147awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION
142echo "LibreSSL version `cat VERSION`" 148echo "LibreSSL version `cat VERSION`"
143 149