diff options
author | Yuriy Kashnikov <yuriy.kashnikov@gmail.com> | 2017-12-06 16:58:24 +0800 |
---|---|---|
committer | Yuriy Kashnikov <yuriy.kashnikov@gmail.com> | 2017-12-06 16:58:24 +0800 |
commit | 2d6fe522a6369cc5e5420f5a29a7f95108ea454e (patch) | |
tree | b92377bac46d898287957ec1088eadd71eee6f66 /scripts/build.sh | |
parent | 37b66616fbee4301f6573cd62c6b581481d9787a (diff) | |
download | dexon-solidity-2d6fe522a6369cc5e5420f5a29a7f95108ea454e.tar.gz dexon-solidity-2d6fe522a6369cc5e5420f5a29a7f95108ea454e.tar.zst dexon-solidity-2d6fe522a6369cc5e5420f5a29a7f95108ea454e.zip |
Handle git release tag properly
Build process will check current commit and if it is tagged
starting with a `v` then it will create `prerelease.txt` file in
the top directory.
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-x | scripts/build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 3785e1c1..362acced 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +if [[ "$(git tag --points-at HEAD 2>/dev/null)"=="v*" ]]; then + touch prerelease.txt +fi + if [ -z "$1" ]; then BUILD_TYPE=Release else @@ -20,4 +24,4 @@ fi if [ -z $CI ]; then echo "Installing solc and soltest" install solc/solc /usr/local/bin && install test/soltest /usr/local/bin -fi
\ No newline at end of file +fi |