aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-15 02:35:42 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-15 02:35:42 +0800
commit8fe36599a2ea78d58d8dcc0752520a35fc33a6fa (patch)
treefb559d714a8d458306b75167bfe34d3d8577fa0a /scripts
parentbb556e1193d8cbe657e47243c18e6913ac26e688 (diff)
downloaddexon-solidity-8fe36599a2ea78d58d8dcc0752520a35fc33a6fa.tar.gz
dexon-solidity-8fe36599a2ea78d58d8dcc0752520a35fc33a6fa.tar.zst
dexon-solidity-8fe36599a2ea78d58d8dcc0752520a35fc33a6fa.zip
Simplify publish script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis-emscripten/publish_binary.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh
index 8fb0a2bc..7bf6f369 100755
--- a/scripts/travis-emscripten/publish_binary.sh
+++ b/scripts/travis-emscripten/publish_binary.sh
@@ -81,16 +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"
+cp ../soljson.js "$NEWFILE"
# Run update script
npm run update
# Publish updates
-git add ./bin/"soljson-$FULLVERSION.js"
+git add "$NEWFILE"
git commit -a -m "Added compiler version $FULLVERSION"
git push origin gh-pages