diff options
author | chriseth <chris@ethereum.org> | 2016-09-09 17:06:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-09 17:06:55 +0800 |
commit | 79867f49b2b27942c465e50475e5e6a0d5a6d897 (patch) | |
tree | 376fd5410389839aa6970516cec09fae37cac216 /scripts | |
parent | ec5aa4449064ef4c5e40729453b7589920defff5 (diff) | |
parent | 8ca31cebecde94e39e0174d1467d7c6664ec9fdf (diff) | |
download | dexon-solidity-79867f49b2b27942c465e50475e5e6a0d5a6d897.tar.gz dexon-solidity-79867f49b2b27942c465e50475e5e6a0d5a6d897.tar.zst dexon-solidity-79867f49b2b27942c465e50475e5e6a0d5a6d897.zip |
Merge pull request #1069 from ethereum/emscriptenbinaries
Store emscripten binaries usig new naming scheme.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis-emscripten/publish_binary.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh index d202764a..e89e3ce3 100755 --- a/scripts/travis-emscripten/publish_binary.sh +++ b/scripts/travis-emscripten/publish_binary.sh @@ -34,7 +34,7 @@ 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 +%F) +DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%m.%d) ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key" ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv" @@ -52,14 +52,14 @@ git config user.email "chris@ethereum.org" git checkout -B gh-pages origin/gh-pages git clean -f -d -x # We only want one release per day and we do not want to push the same commit twice. -if ls ./bin/soljson-"$VER-$DATE"-*.js || ls ./bin/soljson-*-"$COMMIT.js" +if ls ./bin/soljson-"$VER-nightly.$DATE"-*.js || ls ./bin/soljson-*"commit.$COMMIT.js" then echo "Not publishing, we already published this version today." exit 0 fi # This file is assumed to be the product of the build_emscripten.sh script. -cp ../soljson.js ./bin/"soljson-$VER-$DATE-$COMMIT.js" +cp ../soljson.js ./bin/"soljson-$VER-nightly.$DATE+commit.$COMMIT.js" node ./update cd bin LATEST=$(ls -r soljson-v* | head -n 1) |