Skip to content
Permalink
Browse files

Add phing tasks for making subtree splits.

  • Loading branch information...
markstory committed Nov 16, 2012
1 parent 83f06d5 commit dcd975bf4ab94af0bae71c3edcc79253b93a2cf1
Showing with 16 additions and 0 deletions.
  1. +4 −0 build.properties
  2. +12 −0 build.xml
@@ -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
@@ -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
-->

0 comments on commit dcd975b

Please sign in to comment.
You can’t perform that action at this time.