Browse Source

first step to adapt this file to svn

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@347967 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 19 years ago
parent
commit
6022d6715d
1 changed files with 13 additions and 9 deletions
  1. +13
    -9
      patch.xml

+ 13
- 9
patch.xml View File

@@ -14,24 +14,28 @@
<property name="patch.package" value="patch.tar.gz"/>
<property name="patch.file" value="patch.txt"/>

<condition property="cvs.found">
<condition property="svn.found">
<or>
<available file="cvs" filepath="${env.PATH}"/>
<available file="cvs.exe" filepath="${env.PATH}"/>
<available file="cvs.exe" filepath="${env.Path}"/>
<available file="svn" filepath="${env.PATH}"/>
<available file="svn.exe" filepath="${env.PATH}"/>
<available file="svn.exe" filepath="${env.Path}"/>
</or>
</condition>

<target name="createpatch">
<fail unless="cvs.found"
message="You need a version of cvs to create the patch"/>
<cvs command="-q diff -u" output="${patch.file}"/>
<fail unless="svn.found"
message="You need a version of svn to create the patch"/>
<exec executable="svn" output="${patch.file}">
<arg value="diff"/>
</exec>
</target>

<target name="newfiles" depends="createpatch">
<delete file="${patch.package}"/>
<cvs command="-q diff -N" output="${patch.file}.tmp"/>
<replace file="${patch.file}.tmp" token="? " value=""/>
<exec executable="svn" output="${patch.file}.tmp">
<arg value="status"/>
</exec>
<replace file="${patch.file}.tmp" token="? " value=""/>
<tstamp>
<format property="year" pattern="yyyy"/>
</tstamp>


Loading…
Cancel
Save