aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/test10
-rwxr-xr-xupdate.sh2
2 files changed, 7 insertions, 5 deletions
diff --git a/scripts/test b/scripts/test
index d093eab..e389728 100755
--- a/scripts/test
+++ b/scripts/test
@@ -13,6 +13,8 @@ fi
13# generate source tree 13# generate source tree
14./autogen.sh 14./autogen.sh
15 15
16VERSION=`cat VERSION`
17
16if [ "$ARCH" = "" ]; then 18if [ "$ARCH" = "" ]; then
17 ARCH=`uname -m` 19 ARCH=`uname -m`
18fi 20fi
@@ -26,8 +28,8 @@ if [ `uname` = "Darwin" ]; then
26 make -j 4 distcheck 28 make -j 4 distcheck
27 29
28 # test cmake 30 # test cmake
29 tar zxvf libressl-*.tar.gz 31 tar zxvf libressl-$VERSION.tar.gz
30 cd libressl-* 32 cd libressl-$VERSION
31 33
32 ( 34 (
33 mkdir build-static 35 mkdir build-static
@@ -61,8 +63,8 @@ elif [ "$ARCH" = "native" ]; then
61 # make distribution 63 # make distribution
62 make -j 4 distcheck 64 make -j 4 distcheck
63 65
64 tar zxvf libressl-*.tar.gz 66 tar zxvf libressl-$VERSION.tar.gz
65 cd libressl-* 67 cd libressl-$VERSION
66 68
67 69
68 # test cmake and ninja 70 # test cmake and ninja
diff --git a/update.sh b/update.sh
index b190ab8..474a0ff 100755
--- a/update.sh
+++ b/update.sh
@@ -149,7 +149,7 @@ else
149 $CP $libcrypto_src/opensslv.h include/openssl 149 $CP $libcrypto_src/opensslv.h include/openssl
150fi 150fi
151 151
152awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION 152awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 | head -n1 > VERSION
153echo "LibreSSL version `cat VERSION`" 153echo "LibreSSL version `cat VERSION`"
154 154
155# copy libcrypto source 155# copy libcrypto source