mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added version.hpp to source files when building release packages
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@700 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
9eeed8f422
commit
a1b0454b57
2 changed files with 21 additions and 4 deletions
|
|
@ -118,11 +118,9 @@
|
||||||
<mkdir dir="${dist.dir}"/>
|
<mkdir dir="${dist.dir}"/>
|
||||||
<zip destfile="${dist.dir}/${ant.project.name}.zip">
|
<zip destfile="${dist.dir}/${ant.project.name}.zip">
|
||||||
<fileset dir="${dist.dir}" includes="include/**"/>
|
<fileset dir="${dist.dir}" includes="include/**"/>
|
||||||
<fileset dir="${root.dir}" includes="*.txt"/>
|
|
||||||
</zip>
|
</zip>
|
||||||
<tar destfile="${dist.dir}/${ant.project.name}.tar.bz2" compression="bzip2">
|
<tar destfile="${dist.dir}/${ant.project.name}.tar.bz2" compression="bzip2">
|
||||||
<fileset dir="${dist.dir}" includes="include/**"/>
|
<fileset dir="${dist.dir}" includes="include/**"/>
|
||||||
<fileset dir="${root.dir}" includes="*.txt"/>
|
|
||||||
</tar>
|
</tar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
@ -235,11 +233,21 @@
|
||||||
|
|
||||||
<target name="release" depends="documentation,package">
|
<target name="release" depends="documentation,package">
|
||||||
<fail unless="version" message="missing version property"/>
|
<fail unless="version" message="missing version property"/>
|
||||||
<zip file="${dist.dir}/${ant.project.name}-${version}.zip">
|
<copy file="version.hpp" tofile="${out.dir}/version.hpp">
|
||||||
|
<filterset>
|
||||||
|
<filter token="MOCK_VERSION" value="${version}"/>
|
||||||
|
</filterset>
|
||||||
|
</copy>
|
||||||
|
<zip destfile="${dist.dir}/${ant.project.name}-${version}.zip">
|
||||||
<fileset dir="${dist.dir}" includes="include/**"/>
|
<fileset dir="${dist.dir}" includes="include/**"/>
|
||||||
<fileset dir="${root.dir}" includes="*.txt"/>
|
|
||||||
<zipfileset dir="${boost.dir}/libs/mock/doc/html" prefix="doc"/>
|
<zipfileset dir="${boost.dir}/libs/mock/doc/html" prefix="doc"/>
|
||||||
|
<zipfileset dir="${out.dir}" includes="version.hpp" prefix="include/turtle"/>
|
||||||
</zip>
|
</zip>
|
||||||
|
<tar destfile="${dist.dir}/${ant.project.name}-${version}.tar.bz2" compression="bzip2">
|
||||||
|
<fileset dir="${dist.dir}" includes="include/**"/>
|
||||||
|
<zipfileset dir="${boost.dir}/libs/mock/doc/html" prefix="doc"/>
|
||||||
|
<zipfileset dir="${out.dir}" includes="version.hpp" prefix="include/turtle"/>
|
||||||
|
</tar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="all" depends="configure,test,bench,reports,export,package" description="configure, build and run tests and benchmark, export and package distribution"/>
|
<target name="all" depends="configure,test,bench,reports,export,package" description="configure, build and run tests and benchmark, export and package distribution"/>
|
||||||
|
|
|
||||||
9
build/version.hpp
Normal file
9
build/version.hpp
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
// http://turtle.sourceforge.net
|
||||||
|
//
|
||||||
|
// Copyright Mathieu Champlon 2013
|
||||||
|
//
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
#define MOCK_VERSION @MOCK_VERSION@
|
||||||
Loading…
Add table
Add a link
Reference in a new issue