diff options
author | Stefan Bodewig <bodewig@apache.org> | 2014-05-31 11:57:32 +0200 |
---|---|---|
committer | Stefan Bodewig <bodewig@apache.org> | 2014-05-31 11:57:32 +0200 |
commit | 3691c213c5bbfaee5289ab833167a7f4ed946eb6 (patch) | |
tree | 3daa12133eafacb1fc05112a22413e8e04e43d40 /patch.xml | |
parent | 24e5a0e881dba01a6f012c4a271b743946412a0d (diff) | |
download | ant-3691c213c5bbfaee5289ab833167a7f4ed946eb6.tar.gz |
svn => git
Diffstat (limited to 'patch.xml')
-rw-r--r-- | patch.xml | 31 |
1 files changed, 9 insertions, 22 deletions
@@ -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> |