diff options
author | chriseth <chris@ethereum.org> | 2016-10-19 20:36:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 20:36:17 +0800 |
commit | 998c4a9758120e0cfba934ee3e204fdb77e95b40 (patch) | |
tree | 5f7998752460984de2ab116a69abf446e0549925 | |
parent | 65da8e4e160721cdf8fa86c8112a300d88335792 (diff) | |
parent | 8fe36599a2ea78d58d8dcc0752520a35fc33a6fa (diff) | |
download | dexon-solidity-998c4a9758120e0cfba934ee3e204fdb77e95b40.tar dexon-solidity-998c4a9758120e0cfba934ee3e204fdb77e95b40.tar.gz dexon-solidity-998c4a9758120e0cfba934ee3e204fdb77e95b40.tar.bz2 dexon-solidity-998c4a9758120e0cfba934ee3e204fdb77e95b40.tar.lz dexon-solidity-998c4a9758120e0cfba934ee3e204fdb77e95b40.tar.xz dexon-solidity-998c4a9758120e0cfba934ee3e204fdb77e95b40.tar.zst dexon-solidity-998c4a9758120e0cfba934ee3e204fdb77e95b40.zip |
Merge pull request #1223 from ethereum/solc-bin-publish
Change solc-bin publish script to support npm
-rwxr-xr-x | scripts/travis-emscripten/publish_binary.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh index 236d976a..7bf6f369 100755 --- a/scripts/travis-emscripten/publish_binary.sh +++ b/scripts/travis-emscripten/publish_binary.sh @@ -81,9 +81,18 @@ else fi +NEWFILE=./bin/"soljson-$FULLVERSION.js" + +# Prepare for update script +npm install + # This file is assumed to be the product of the build_emscripten.sh script. -cp ../soljson.js ./bin/"soljson-$FULLVERSION.js" -node ./update -git add ./bin/"soljson-$FULLVERSION.js" +cp ../soljson.js "$NEWFILE" + +# Run update script +npm run update + +# Publish updates +git add "$NEWFILE" git commit -a -m "Added compiler version $FULLVERSION" git push origin gh-pages |