Skip to content

Commit

Permalink
repo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Oct 21, 2016
1 parent 450bcd1 commit d3aa7b6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions dev/add-to-output-repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ cd "`git rev-parse --show-toplevel`"
mkdir -p tmp
cd tmp

branch=stable
stable_branch=stable
beta_branch=master

branch=$stable_branch
if [ "$1" = "beta" ]; then
branch=master
branch=$beta_branch
fi

EMBERVERSION=`ember version | grep "ember-cli:" | cut -d' ' -f2`
Expand All @@ -22,13 +25,22 @@ for i in ${commands[@]}; do
local_folder=my-app
fi

if [ "$1" = "beta" and "$2" = "fork" ]; then
branch=$stable_branch
fi

git clone https://github.com/ember-cli/$repo_folder.git --branch $branch
pushd $repo_folder
git rm -rf .
ember $command $local_folder -sb -sn -sg
cp -r $local_folder/ .
rm -r $local_folder

if [ "$1" = "beta" and "$2" = "fork" ]; then
git branch -R $beta_branch
git branch $beta_branch
fi

git add --all
git commit -m $EMBERVERSION
git tag "v"$EMBERVERSION
Expand Down

0 comments on commit d3aa7b6

Please sign in to comment.