Land #1047, use file version number in test scripts

This commit is contained in:
Brent Cook
2024-04-08 20:26:36 -05:00
2 changed files with 7 additions and 5 deletions

View File

@@ -13,6 +13,8 @@ fi
# generate source tree
./autogen.sh
VERSION=`cat VERSION`
if [ "$ARCH" = "" ]; then
ARCH=`uname -m`
fi
@@ -26,8 +28,8 @@ if [ `uname` = "Darwin" ]; then
make -j 4 distcheck
# test cmake
tar zxvf libressl-*.tar.gz
cd libressl-*
tar zxvf libressl-$VERSION.tar.gz
cd libressl-$VERSION
(
mkdir build-static
@@ -61,8 +63,8 @@ elif [ "$ARCH" = "native" ]; then
# make distribution
make -j 4 distcheck
tar zxvf libressl-*.tar.gz
cd libressl-*
tar zxvf libressl-$VERSION.tar.gz
cd libressl-$VERSION
# test cmake and ninja

View File

@@ -149,7 +149,7 @@ else
$CP $libcrypto_src/opensslv.h include/openssl
fi
awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION
awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 | head -n1 > VERSION
echo "LibreSSL version `cat VERSION`"
# copy libcrypto source