mirror of https://github.com/apache/lucene.git
LUCENE-2992: build the changes.html file when doing svn-export for the release
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1085423 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0934039ced
commit
5af06fbfa7
|
@ -369,6 +369,7 @@
|
|||
<arg value="${svn.URL}"/>
|
||||
<arg value="${svn.export.dir}"/>
|
||||
</exec>
|
||||
<build-changes changes.src.dir="${svn.export.dir}/src/site/changes" changes.target.dir="${svn.export.dir}/docs/changes"/>
|
||||
</target>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
|
@ -611,18 +612,26 @@
|
|||
<!--
|
||||
compile changes.txt into an html file
|
||||
-->
|
||||
<macrodef name="build-changes">
|
||||
<attribute name="changes.src.dir" default="${changes.src.dir}"/>
|
||||
<attribute name="changes.target.dir" default="${changes.target.dir}"/>
|
||||
<sequential>
|
||||
<mkdir dir="@{changes.target.dir}"/>
|
||||
<exec executable="perl" input="CHANGES.txt" output="@{changes.target.dir}/Changes.html" failonerror="true">
|
||||
<arg value="@{changes.src.dir}/changes2html.pl"/>
|
||||
</exec>
|
||||
<exec executable="perl" input="contrib/CHANGES.txt" output="@{changes.target.dir}/Contrib-Changes.html"
|
||||
failonerror="true">
|
||||
<arg value="@{changes.src.dir}/changes2html.pl"/>
|
||||
</exec>
|
||||
<copy todir="@{changes.target.dir}">
|
||||
<fileset dir="@{changes.src.dir}" includes="*.css"/>
|
||||
</copy>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<target name="changes-to-html">
|
||||
<mkdir dir="${changes.target.dir}"/>
|
||||
<exec executable="perl" input="CHANGES.txt" output="${changes.target.dir}/Changes.html" failonerror="true">
|
||||
<arg value="${changes.src.dir}/changes2html.pl"/>
|
||||
</exec>
|
||||
<exec executable="perl" input="contrib/CHANGES.txt" output="${changes.target.dir}/Contrib-Changes.html" failonerror="true">
|
||||
<arg value="${changes.src.dir}/changes2html.pl"/>
|
||||
</exec>
|
||||
<copy todir="${changes.target.dir}">
|
||||
<fileset dir="${changes.src.dir}" includes="*.css"/>
|
||||
</copy>
|
||||
<build-changes changes.src.dir="${changes.src.dir}" changes.target.dir="${changes.target.dir}" />
|
||||
</target>
|
||||
|
||||
<!--
|
||||
|
|
Loading…
Reference in New Issue