diff options
author | chriseth <c@ethdev.com> | 2016-09-09 19:59:22 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-09-09 20:23:33 +0800 |
commit | 29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7 (patch) | |
tree | 9c3dc9ae8980bb556a3f18cbd290eb6216e90f1f /scripts/travis-emscripten | |
parent | 79867f49b2b27942c465e50475e5e6a0d5a6d897 (diff) | |
download | dexon-solidity-29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7.tar dexon-solidity-29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7.tar.gz dexon-solidity-29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7.tar.bz2 dexon-solidity-29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7.tar.lz dexon-solidity-29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7.tar.xz dexon-solidity-29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7.tar.zst dexon-solidity-29ecc6fe31d56feaf5d5a04e84b12138baa0d1e7.zip |
Remove leading zeroes in prerelease components.
Diffstat (limited to 'scripts/travis-emscripten')
-rwxr-xr-x | scripts/travis-emscripten/publish_binary.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh index e89e3ce3..bfdf9906 100755 --- a/scripts/travis-emscripten/publish_binary.sh +++ b/scripts/travis-emscripten/publish_binary.sh @@ -34,7 +34,10 @@ VER=$(cat CMakeLists.txt | grep 'set(PROJECT_VERSION' | sed -e 's/.*set(PROJECT_ test -n "$VER" VER="v$VER" COMMIT=$(git rev-parse --short HEAD) -DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%m.%d) +DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%-m.%-d) + +# remove leading zeros in components - they are not semver-compatible +COMMIT=$(echo "$COMMIT" | sed -e 's/^0*//') ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key" ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv" |