Fix release scripts

This commit is contained in:
Paris Kasidiaris
2016-10-03 15:32:14 +03:00
parent 3e77db8149
commit d581559dd4
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -3,6 +3,8 @@
# Usage: ./bin/prepare-release x.y.z # Usage: ./bin/prepare-release x.y.z
# x.y.z should be semver (e.g. 1.0.0) # x.y.z should be semver (e.g. 1.0.0)
set -e
NEW_VERSION=$1 NEW_VERSION=$1
CURRENT_PACKAGE_JSON_VERSION=$(cat package.json \ CURRENT_PACKAGE_JSON_VERSION=$(cat package.json \
| grep version \ | grep version \
@@ -19,7 +21,7 @@ CURRENT_BOWER_JSON_VERSION=$(cat bower.json \
# Build xterm.js into `dist` # Build xterm.js into `dist`
export BUILD_DIR=dist export BUILD_DIR=dist
sh bin/build ./bin/build
# Update AUTHORS file # Update AUTHORS file
sh bin/generate-authors sh bin/generate-authors
+2
View File
@@ -3,6 +3,8 @@
# Usage: ./bin/release x.y.z # Usage: ./bin/release x.y.z
# x.y.z should be semver (e.g. 1.0.0) # x.y.z should be semver (e.g. 1.0.0)
set -e
if [ -z "$1" ]; if [ -z "$1" ];
then then
echo "No version supplied. Please a version argument\n" echo "No version supplied. Please a version argument\n"