summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2018-02-13 16:48:54 +0000
committerLeif Lindholm <leif.lindholm@linaro.org>2018-02-13 16:48:54 +0000
commitd985e8fdeb82b2e14a090a9e1d9fffbf7a7335f3 (patch)
treeaae6aebdf34edf4b6cdb1a439f7a2cabd5439050
parent6f2c63c7638ed4ae097c19d7e2ccda6ac53f16c6 (diff)
common-functions: add more filter on openssl tags
When trying to figure out latest released openssl version, ignore tags ending in -pre*. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--common-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/common-functions b/common-functions
index aecb669..bbdf14e 100644
--- a/common-functions
+++ b/common-functions
@@ -160,7 +160,7 @@ function clone_process_openssl
return 0
fi
- OPENSSL_VER=`git ls-remote --tags git://github.com/openssl/openssl.git | awk '{print $2;}' | sed 's-^refs/tags/--g' | grep -v '\^{}$' | grep '^OpenSSL' | grep -v '^OpenSSL_FIPS' | tail -1 | sed -n 's/^OpenSSL_\([0-9]*\)_\([0-9]*\)_\([0-9.a-z]*\)$/openssl-\1.\2.\3\n/p'`
+ OPENSSL_VER=`git ls-remote --tags git://github.com/openssl/openssl.git | awk '{print $2;}' | sed 's-^refs/tags/--g' | grep -v '\^{}$' | grep '^OpenSSL' | grep -v '^OpenSSL_FIPS' | grep -v "\-pre" | tail -1 | sed -n 's/^OpenSSL_\([0-9]*\)_\([0-9]*\)_\([0-9.a-z]*\)$/openssl-\1.\2.\3\n/p'`
OPENSSL_TAR="$OPENSSL_VER.tar.gz"
if [ -z "$OPENSSL_TAR" ]; then
return 1