diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-30 18:30:57 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-01 18:25:02 +0800 |
commit | f13feed7f26aba22396ec1728a51a96fd9bd65e3 (patch) | |
tree | 4bf79d4b56ff37e4e600158c523116cde7b67c21 /scripts/release_ppa.sh | |
parent | b0e4555db37006f1a72c4dd793aef6d69f70f4df (diff) | |
download | dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar.gz dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar.bz2 dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar.lz dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar.xz dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.tar.zst dexon-solidity-f13feed7f26aba22396ec1728a51a96fd9bd65e3.zip |
Add script to retrieve version
Diffstat (limited to 'scripts/release_ppa.sh')
-rwxr-xr-x | scripts/release_ppa.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/release_ppa.sh b/scripts/release_ppa.sh index 5e01347b..7c9abecb 100755 --- a/scripts/release_ppa.sh +++ b/scripts/release_ppa.sh @@ -55,10 +55,10 @@ wget -O ./solc/deps/downloads/jsoncpp-1.7.7.tar.gz https://github.com/open-sourc # Determine version cd solc -version=`grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt` -commithash=`git rev-parse --short=8 HEAD` -committimestamp=`git show --format=%ci HEAD | head -n 1` -commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./'` +version=$($(dirname "$0")/get_version.sh) +commithash=$(git rev-parse --short=8 HEAD) +committimestamp=$(git show --format=%ci HEAD | head -n 1) +commitdate=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./') echo "$commithash" > commit_hash.txt if [ $branch = develop ] |