derive VERSION from opensslv.h from upstream
This commit is contained in:
parent
0bab46dde2
commit
fafc3e47f2
1
.gitignore
vendored
1
.gitignore
vendored
@ -93,6 +93,7 @@ stamp-h2
|
||||
|
||||
include/openssl/Makefile.am
|
||||
|
||||
VERSION
|
||||
crypto/VERSION
|
||||
ssl/VERSION
|
||||
tls/VERSION
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user