diff options
author | Brent Cook <bcook@openbsd.org> | 2015-07-16 17:52:50 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-07-16 17:52:50 -0500 |
commit | fafc3e47f24d9ac25eb41221e2d91ee0b17f5c5b (patch) | |
tree | c7bea628cb5070b9bc9621d39825200ef36335ef /update.sh | |
parent | 0bab46dde22f6096ad85df4dd39a0f01758d234f (diff) | |
download | portable-fafc3e47f24d9ac25eb41221e2d91ee0b17f5c5b.tar.gz portable-fafc3e47f24d9ac25eb41221e2d91ee0b17f5c5b.tar.bz2 portable-fafc3e47f24d9ac25eb41221e2d91ee0b17f5c5b.zip |
derive VERSION from opensslv.h from upstream
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2,7 +2,6 @@ | |||
2 | set -e | 2 | set -e |
3 | 3 | ||
4 | openbsd_branch=`cat OPENBSD_BRANCH` | 4 | openbsd_branch=`cat OPENBSD_BRANCH` |
5 | libressl_version=`cat VERSION` | ||
6 | 5 | ||
7 | # pull in latest upstream code | 6 | # pull in latest upstream code |
8 | echo "pulling upstream openbsd source" | 7 | echo "pulling upstream openbsd source" |
@@ -120,9 +119,9 @@ copy_hdrs crypto "stack/stack.h lhash/lhash.h stack/safestack.h | |||
120 | 119 | ||
121 | copy_hdrs ssl "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h" | 120 | copy_hdrs ssl "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h" |
122 | 121 | ||
123 | sed -e "s/\"LibreSSL .*\"/\"LibreSSL ${libressl_version}\"/" \ | 122 | $CP $libssl_src/src/crypto/opensslv.h include/openssl |
124 | $libssl_src/src/crypto/opensslv.h > include/openssl/opensslv.h.lcl | 123 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION |
125 | $MV include/openssl/opensslv.h.lcl include/openssl/opensslv.h | 124 | echo "LibreSSL version `cat VERSION`" |
126 | 125 | ||
127 | # copy libcrypto source | 126 | # copy libcrypto source |
128 | echo copying libcrypto source | 127 | echo copying libcrypto source |