Changeset 6545 in josm
- Timestamp:
- 2013-12-27T14:02:14+01:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r6540 r6545 39 39 ** Initializes the REVISION.XML file from SVN information 40 40 --> 41 <target name="init-svn-revision-xml" unless="git_revision">42 <exec append="false" output="REVISION.XML" executable="svn" failifexecutionfails="false" >41 <target name="init-svn-revision-xml"> 42 <exec append="false" output="REVISION.XML" executable="svn" failifexecutionfails="false" errorproperty="svn.info.failed"> 43 43 <env key="LANG" value="C"/> 44 44 <arg value="info"/> … … 50 50 ** Initializes the REVISION.XML file from git information 51 51 --> 52 <target name="init-git-revision-xml" if=" git_revision">53 <exec append="false" output="REVISION. TMP" executable="git" failifexecutionfails="false">52 <target name="init-git-revision-xml" if="svn.info.failed"> 53 <exec append="false" output="REVISION.XML" executable="git" failifexecutionfails="false"> 54 54 <arg value="log"/> 55 55 <arg value="-1"/> 56 56 <arg value="--grep=git-svn-id"/> 57 <arg value="--pretty=format:%ai%n%B"/> 57 <!-- 58 %B: raw body (unwrapped subject and body) 59 %n: new line 60 %ai: author date, ISO 8601 format 61 --> 62 <arg value="--pretty=format:%B%n%ai"/> 58 63 <arg value="HEAD"/> 59 64 </exec> 60 <exec append="false" input="REVISION.TMP" output="REVISION.XML" executable="perl" failifexecutionfails="false"> 61 <arg value="tools/gitcommit2xml.pl"/> 62 </exec> 63 <delete file="REVISION.TMP"/> 65 <replaceregexp file="REVISION.XML" flags="s" 66 match=".*git-svn-id: [^@]*@([0-9]+).*(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$" 67 replace="<info><entry><commit revision="\1"><date>\2</date></commit></entry></info>"/> 64 68 </target> 65 69 <!--
Note:
See TracChangeset
for help on using the changeset viewer.