summaryrefslogtreecommitdiffstats
path: root/util/mktar.sh
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-02-27 01:09:23 +0100
committerRichard Levitte <levitte@openssl.org>2020-02-28 12:19:16 +0100
commit1dfdbd5bf65bc9e7dec728e502f9c7cd9352bb42 (patch)
tree7d42cad2bc58a6b546614b2ce79e7446e600d9ec /util/mktar.sh
parentc590be6f12d0b725863961e41bc64a81c8cf30d6 (diff)
Fix util/mktar.sh to use the new VERSION information
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> (Merged from https://github.com/openssl/openssl/pull/11190)
Diffstat (limited to 'util/mktar.sh')
-rwxr-xr-xutil/mktar.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/mktar.sh b/util/mktar.sh
index 6d5df8528d..b58fbe9d31 100755
--- a/util/mktar.sh
+++ b/util/mktar.sh
@@ -8,7 +8,11 @@
HERE=`dirname $0`
-version=`grep 'OPENSSL_VERSION_TEXT *"OpenSSL' $HERE/../include/openssl/opensslv.h | sed -e 's|.*"OpenSSL ||' -e 's| .*||'`
+# Get all version data as shell variables
+. $HERE/../VERSION
+
+if [ -n "$PRE_RELEASE_TAG" ]; then PRE_RELEASE_TAG=-$PRE_RELEASE_TAG; fi
+version=$MAJOR.$MINOR.$PATCH$PRE_RELEASE_TAG$BUILD_METADATA
basename=openssl
NAME="$basename-$version"