Merge pull request #1223 from ethereum/solc-bin-publish

Change solc-bin publish script to support npm
This commit is contained in:
chriseth 2016-10-19 14:36:17 +02:00 committed by GitHub
commit 998c4a9758

View File

@ -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