Skip to content

Commit

Permalink
Starting work for auto build subtree splits for components
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 1, 2014
1 parent 8208588 commit 2a6596b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Expand Up @@ -6,6 +6,7 @@
# Use the version number to figure out if the release
# is a pre-release
PRERELEASE=$(shell echo $(VERSION) | grep -E 'dev|rc|alpha|beta' --quiet && echo 'true' || echo 'false')
COMPONENTS= log utility cache datasource core collection event validation

# Github settings
UPLOAD_HOST=https://uploads.github.com
Expand Down Expand Up @@ -154,5 +155,15 @@ publish: guard-VERSION guard-GITHUB_USER dist/cakephp-$(DASH_VERSION).zip
rm release.json
rm id.txt

components: $(foreach component, $(COMPONENTS), component-$(component))

component-%:
git checkout 3.0
- (git remote add $* git@github.com:cakephp/$*.git -f 2> /dev/null)
- (git branch -D $* 2> /dev/null)
git checkout -b $*
git filter-branch --prune-empty --subdirectory-filter src/$* -f $*


# Top level alias for doing a release.
release: guard-VERSION guard-GITHUB_USER tag-release package publish

0 comments on commit 2a6596b

Please sign in to comment.