diff options
author | Yuriy Kashnikov <yuriy.kashnikov@gmail.com> | 2017-12-06 22:14:54 +0800 |
---|---|---|
committer | Yuriy Kashnikov <yuriy.kashnikov@gmail.com> | 2017-12-06 22:14:54 +0800 |
commit | 4634ce825b1f9f810978c15fe12d652a3f833537 (patch) | |
tree | dcf71c560f57f838496265dc0d51334602cdbeb0 /scripts/build.sh | |
parent | 2d6fe522a6369cc5e5420f5a29a7f95108ea454e (diff) | |
download | dexon-solidity-4634ce825b1f9f810978c15fe12d652a3f833537.tar.gz dexon-solidity-4634ce825b1f9f810978c15fe12d652a3f833537.tar.zst dexon-solidity-4634ce825b1f9f810978c15fe12d652a3f833537.zip |
Review fixes
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-x | scripts/build.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 362acced..bddbb97a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,9 +1,5 @@ #!/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 @@ -11,6 +7,11 @@ else fi cd $(dirname "$0")/.. && + +if [[ "$(git tag --points-at HEAD 2>/dev/null)" == v* ]]; then + touch prerelease.txt +fi + mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE" && |