release-all.sh 613 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. NEW_VERSION=$1
  3. git checkout master
  4. ./generate-changelog.sh beautify-web/js-beautify || exit 1
  5. git commit -am "Update Changelog for $NEW_VERSION"
  6. # python
  7. git clean -xfd || exit 1
  8. echo "__version__ = '$NEW_VERSION'" > python/jsbeautifier/__version__.py
  9. git commit -am "Python $NEW_VERSION"
  10. cd python
  11. python setup.py register
  12. python setup.py sdist bdist_wininst upload
  13. cd ..
  14. git push
  15. # node
  16. git clean -xfd
  17. npm version $NEW_VERSION
  18. npm publish .
  19. git push
  20. git push --tags
  21. # web
  22. git clean -xfd
  23. git checkout gh-pages && git fetch && git merge origin/master && git push || exit 1
  24. git checkout master