Browse Source

Add phing tasks for making subtree splits.

mark_story 13 years ago
parent
commit
dcd975bf4a
2 changed files with 16 additions and 0 deletions
  1. 4 0
      build.properties
  2. 12 0
      build.xml

+ 4 - 0
build.properties

@@ -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

+ 12 - 0
build.xml

@@ -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
 	-->