derive VERSION from opensslv.h from upstream

This commit is contained in:
Brent Cook 2015-07-16 17:52:50 -05:00
parent 0bab46dde2
commit fafc3e47f2
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -93,6 +93,7 @@ stamp-h2
include/openssl/Makefile.am
VERSION
crypto/VERSION
ssl/VERSION
tls/VERSION

View File

@ -1 +1,2 @@
2.2.2

View File

@ -2,7 +2,6 @@
set -e
openbsd_branch=`cat OPENBSD_BRANCH`
libressl_version=`cat VERSION`
# pull in latest upstream code
echo "pulling upstream openbsd source"
@ -120,9 +119,9 @@ copy_hdrs crypto "stack/stack.h lhash/lhash.h stack/safestack.h
copy_hdrs ssl "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h"
sed -e "s/\"LibreSSL .*\"/\"LibreSSL ${libressl_version}\"/" \
$libssl_src/src/crypto/opensslv.h > include/openssl/opensslv.h.lcl
$MV include/openssl/opensslv.h.lcl include/openssl/opensslv.h
$CP $libssl_src/src/crypto/opensslv.h include/openssl
awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION
echo "LibreSSL version `cat VERSION`"
# copy libcrypto source
echo copying libcrypto source