Skip to content

Commit

Permalink
Add phing tasks for making subtree splits.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 28, 2012
1 parent 83f06d5 commit dcd975b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.properties
Expand Up @@ -4,6 +4,10 @@ project.name = CakePHP
# Git stuff
git.remote = origin

# Subtree split repo locations
git.subtree.app = git@github.com:cakephp/app.git
git.subtree.framework = git@github.com:cakephp/framework.git

# Directories
build.dir = build
dist.dir = dist
Expand Down
12 changes: 12 additions & 0 deletions build.xml
Expand Up @@ -205,6 +205,18 @@
<exec command="ssh cakephp@cakephp.org pirum add ${pirum.dir} ${pirum.dir}/${pear.package}.tgz" checkreturn="true" />
</target>

<target name="subtree-split">
<echo msg="Generating app-split subtree branch" />
<exec command="git subtree split --prefix App/ --branch app-split" />

<echo msg="Generating framework-split subtree branch" />
<exec command="git subtree split --prefix lib/ --branch framework-split" />

<echo msg="Pushing splits to remotes" />
<exec command="git push ${git.subtree.app} app-split:master" />
<exec command="git push ${git.subtree.framework} framework-split:master" />
</target>

<!--
Top level easy to type targets
-->
Expand Down

0 comments on commit dcd975b

Please sign in to comment.