Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
archive -> git ci -> git push tasks added
Browse files Browse the repository at this point in the history
  • Loading branch information
farazdagi committed May 3, 2011
1 parent 23e25c7 commit 1edc192
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project name="phrozn-bundles-builder" description="Compile bundles" default="main" >
<target name="main" description="Main action">
<!-- create archives -->
<foreach param="dir" absparam="." target="create-archives">
<foreach param="dir" absparam="." target="process-bundle">
<fileset dir=".">
<type type="dir" />
<depth max="0" min="0" />
Expand All @@ -11,7 +11,16 @@
</foreach>
</target>

<target name="create-archives" description="Create bundle archives">
<target name="process-bundle" description="Process bundle folder">
<phingcall target="create-archive">
<property name="dir" value="${dir}" />
</phingcall>
<phingcall target="push-to-repo">
<property name="bundle" value="${dir}.tgz" />
</phingcall>
</target>

<target name="create-archive" description="Create bundle archives">
<tar destfile="${dir}.tgz" compression="gzip">
<fileset dir="./${dir}">
<include name="**/**" />
Expand All @@ -20,4 +29,11 @@
<echo>Compressing "${dir}" into "${dir}.tgz"</echo>
</target>

<target name="push-to-repo">
<exec command="git add ${bundle}" dir="." />
<exec command="git ci -m '${bundle} updated'" dir="." />
<gitpush
repository="."
quiet="true" />
</target>
</project>

0 comments on commit 1edc192

Please sign in to comment.