aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/create_source_tarball.sh
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-30 18:30:57 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-01 18:25:02 +0800
commitf13feed7f26aba22396ec1728a51a96fd9bd65e3 (patch)
tree4bf79d4b56ff37e4e600158c523116cde7b67c21 /scripts/create_source_tarball.sh
parentb0e4555db37006f1a72c4dd793aef6d69f70f4df (diff)
downloaddexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar.gz
dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar.zst
dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.zip
Add script to retrieve version
Diffstat (limited to 'scripts/create_source_tarball.sh')
-rwxr-xr-xscripts/create_source_tarball.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create_source_tarball.sh b/scripts/create_source_tarball.sh
index 9ca72c31..7339e106 100755
--- a/scripts/create_source_tarball.sh
+++ b/scripts/create_source_tarball.sh
@@ -6,7 +6,7 @@ set -e
REPO_ROOT="$(dirname "$0")"/..
(
cd "$REPO_ROOT"
- version=$(grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt)
+ version=$(scripts/get_version.sh)
commithash=$(git rev-parse --short=8 HEAD)
commitdate=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./')