diff options
-rwxr-xr-x | scripts/test | 9 | ||||
-rwxr-xr-x | update.sh | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/scripts/test b/scripts/test index d093eab..3e4b291 100755 --- a/scripts/test +++ b/scripts/test | |||
@@ -4,6 +4,7 @@ set -x | |||
4 | 4 | ||
5 | unset CC | 5 | unset CC |
6 | ENABLE_ASM="${ENABLE_ASM:=ON}" | 6 | ENABLE_ASM="${ENABLE_ASM:=ON}" |
7 | VERSION=`cat VERSION` | ||
7 | 8 | ||
8 | if type apt-get >/dev/null 2>&1; then | 9 | if type apt-get >/dev/null 2>&1; then |
9 | sudo apt-get update | 10 | sudo apt-get update |
@@ -26,8 +27,8 @@ if [ `uname` = "Darwin" ]; then | |||
26 | make -j 4 distcheck | 27 | make -j 4 distcheck |
27 | 28 | ||
28 | # test cmake | 29 | # test cmake |
29 | tar zxvf libressl-*.tar.gz | 30 | tar zxvf libressl-$VERSION.tar.gz |
30 | cd libressl-* | 31 | cd libressl-$VERSION |
31 | 32 | ||
32 | ( | 33 | ( |
33 | mkdir build-static | 34 | mkdir build-static |
@@ -61,8 +62,8 @@ elif [ "$ARCH" = "native" ]; then | |||
61 | # make distribution | 62 | # make distribution |
62 | make -j 4 distcheck | 63 | make -j 4 distcheck |
63 | 64 | ||
64 | tar zxvf libressl-*.tar.gz | 65 | tar zxvf libressl-$VERSION.tar.gz |
65 | cd libressl-* | 66 | cd libressl-$VERSION |
66 | 67 | ||
67 | 68 | ||
68 | # test cmake and ninja | 69 | # test cmake and ninja |
@@ -149,7 +149,7 @@ else | |||
149 | $CP $libcrypto_src/opensslv.h include/openssl | 149 | $CP $libcrypto_src/opensslv.h include/openssl |
150 | fi | 150 | fi |
151 | 151 | ||
152 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION | 152 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 | head -n1 > VERSION |
153 | echo "LibreSSL version `cat VERSION`" | 153 | echo "LibreSSL version `cat VERSION`" |
154 | 154 | ||
155 | # copy libcrypto source | 155 | # copy libcrypto source |