mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added release target
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@699 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
4142f8dec2
commit
9eeed8f422
2 changed files with 19 additions and 9 deletions
|
|
@ -3,6 +3,8 @@
|
|||
<property environment="env"/>
|
||||
<import file="${env.PONEY_HOME}/poney.xml"/>
|
||||
|
||||
<property name="boost.dir" value="${out.dir}/../boost"/>
|
||||
|
||||
<target name="clean" description="clean intermediate build artifacts">
|
||||
<delete dir="${out.dir}"/>
|
||||
</target>
|
||||
|
|
@ -124,10 +126,8 @@
|
|||
</tar>
|
||||
</target>
|
||||
|
||||
<property name="boost.dir" value="${out.dir}/../boost"/>
|
||||
|
||||
<presetdef name="bjam">
|
||||
<exec taskname="bjam" failonerror="true" executable="${env.BOOST_ROOT}/bjam">
|
||||
<presetdef name="b2">
|
||||
<exec taskname="b2" failonerror="true" executable="${env.BOOST_ROOT}/b2">
|
||||
<arg value="-q"/>
|
||||
</exec>
|
||||
</presetdef>
|
||||
|
|
@ -214,18 +214,18 @@
|
|||
</target>
|
||||
|
||||
<target name="boost.test" description="run boost.mock tests in ${boost.dir}">
|
||||
<bjam dir="${boost.dir}/libs/mock/test"/>
|
||||
<b2 dir="${boost.dir}/libs/mock/test"/>
|
||||
</target>
|
||||
|
||||
<target name="boost.doc" description="generate boost.mock documentation in ${boost.dir}">
|
||||
<bjam dir="${boost.dir}/libs/mock/doc"/>
|
||||
<b2 dir="${boost.dir}/libs/mock/doc"/>
|
||||
</target>
|
||||
|
||||
<target name="boost.package" description="package boost.mock">
|
||||
<zip destfile="${out.dir}/boost-mock.zip">
|
||||
<fileset dir="${boost.dir}" includes="boost/mock/**"/>
|
||||
<fileset dir="${boost.dir}" includes="libs/mock/**" excludes="**/bin/**"/>
|
||||
<fileset dir="${boost.dir}" includes="LICENSE_1_0.txt,Jamroot.jam,Jamfile.v2"/>
|
||||
<fileset dir="${boost.dir}" includes="boost/mock/**"/>
|
||||
<fileset dir="${boost.dir}" includes="libs/mock/**" excludes="**/bin/**"/>
|
||||
<fileset dir="${boost.dir}" includes="LICENSE_1_0.txt,Jamroot.jam,Jamfile.v2"/>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
|
@ -233,6 +233,15 @@
|
|||
|
||||
<target name="boost" depends="boost.generate,boost.convert,boost.test,boost.doc" description="convert to boost with documentation and tests"/>
|
||||
|
||||
<target name="release" depends="documentation,package">
|
||||
<fail unless="version" message="missing version property"/>
|
||||
<zip file="${dist.dir}/${ant.project.name}-${version}.zip">
|
||||
<fileset dir="${dist.dir}" includes="include/**"/>
|
||||
<fileset dir="${root.dir}" includes="*.txt"/>
|
||||
<zipfileset dir="${boost.dir}/libs/mock/doc/html" prefix="doc"/>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
<target name="all" depends="configure,test,bench,reports,export,package" description="configure, build and run tests and benchmark, export and package distribution"/>
|
||||
|
||||
</project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue