diff options
| author | Tobias Bosch | 2014-01-07 14:47:03 -0800 | 
|---|---|---|
| committer | Tobias Bosch | 2014-01-07 15:49:03 -0800 | 
| commit | e89150ca0f462c8673e03bc29bce0d2dd51c6e03 (patch) | |
| tree | 67a261157ea6dc0dc6c4c6b3728655c68cdc480b /scripts/angular-seed/publish.sh | |
| parent | 9693a426e3814c0c2d83802015ae6cd8cfec8e3e (diff) | |
| download | angular.js-e89150ca0f462c8673e03bc29bce0d2dd51c6e03.tar.bz2 | |
chore(build): Add angular-seed and angular-phonecat to the release
Diffstat (limited to 'scripts/angular-seed/publish.sh')
| -rwxr-xr-x | scripts/angular-seed/publish.sh | 44 | 
1 files changed, 44 insertions, 0 deletions
| diff --git a/scripts/angular-seed/publish.sh b/scripts/angular-seed/publish.sh new file mode 100755 index 00000000..94498d67 --- /dev/null +++ b/scripts/angular-seed/publish.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +# Script for updating angular-seed repo from current local build. + +echo "#################################" +echo "## Update angular-seed ###" +echo "#################################" + +ARG_DEFS=( +  "--action=(prepare|publish)" +  "[--no-test=(true|false)]" +) + +function init { +  TMP_DIR=$(resolveDir ../../tmp) +  BUILD_DIR=$(resolveDir ../../build) +  REPO_DIR=$TMP_DIR/angular-seed +  NEW_VERSION=$(cat $BUILD_DIR/version.txt) +} + +function prepare { +  echo "-- Cloning angular-seed" +  git clone git@github.com:angular/angular-seed.git $REPO_DIR + +  # +  # copy the files from the build +  # +  echo "-- Updating angular-seed" +  cd $REPO_DIR +  ./scripts/update-angular.sh $BUILD_DIR + +  # Test +  if [[ $NO_TEST != "true" ]]; then +    ./scripts/test-all.sh +  fi +} + +function publish { +  cd $REPO_DIR +  echo "-- Pushing angular-seed" +  git push origin master +} + +source $(dirname $0)/../utils.inc | 
