summaryrefslogtreecommitdiff
path: root/patch.xml
diff options
context:
space:
mode:
authorStefan Bodewig <bodewig@apache.org>2014-05-31 11:57:32 +0200
committerStefan Bodewig <bodewig@apache.org>2014-05-31 11:57:32 +0200
commit3691c213c5bbfaee5289ab833167a7f4ed946eb6 (patch)
tree3daa12133eafacb1fc05112a22413e8e04e43d40 /patch.xml
parent24e5a0e881dba01a6f012c4a271b743946412a0d (diff)
downloadant-3691c213c5bbfaee5289ab833167a7f4ed946eb6.tar.gz
svn => git
Diffstat (limited to 'patch.xml')
-rw-r--r--patch.xml31
1 files changed, 9 insertions, 22 deletions
diff --git a/patch.xml b/patch.xml
index 7b7f8be6f..910b12324 100644
--- a/patch.xml
+++ b/patch.xml
@@ -26,36 +26,23 @@
<property name="patch.package" value="patch.tar.gz"/>
<property name="patch.file" value="patch.txt"/>
- <condition property="svn.found">
+ <condition property="git.found">
<or>
- <available file="svn" filepath="${env.PATH}"/>
- <available file="svn.exe" filepath="${env.PATH}"/>
- <available file="svn.exe" filepath="${env.Path}"/>
+ <available file="git" filepath="${env.PATH}"/>
+ <available file="git.exe" filepath="${env.PATH}"/>
+ <available file="git.exe" filepath="${env.Path}"/>
</or>
</condition>
<target name="createpatch">
- <fail unless="svn.found"
- message="You need a version of svn to create the patch"/>
- <exec executable="svn" output="${patch.file}">
+ <fail unless="git.found"
+ message="You need a version of git to create the patch"/>
+ <exec executable="git" output="${patch.file}">
<arg value="diff"/>
</exec>
</target>
- <target name="newfiles" depends="createpatch">
- <delete file="${patch.package}"/>
- <exec executable="svn" output="${patch.file}.tmp">
- <arg value="status"/>
- </exec>
- <replace file="${patch.file}.tmp" token="? " value=""/>
- </target>
-
- <target name="patchpackage" depends="newfiles">
- <tar basedir="${basedir}"
- tarfile="${patch.package}"
- compression="gzip"
- includesfile="${patch.file}.tmp"
- excludes="${patch.file}.tmp"/>
- <delete file="${patch.file}.tmp"/>
+ <target name="patchpackage" depends="createpatch">
+ <gzip src="${patch.file}" destfile="${patch.file}.gz"/>
</target>
</project>