xref: /aoo41x/main/solenv/bin/srcrelease.xml (revision c81b3157)
1<project name="Apache OpenOffice" basedir="." default="pack">
2
3  <property name="out.dir" value="."/>
4  <property name="aoo.name" value="aoo"/>
5  <property name="aoo.ver" value="3.4"/>
6  <property name="release.dir.name" value="${aoo.name}-${aoo.ver}"/>
7  <property name="release.file.name" value="${release.dir.name}-src"/>
8  <property name="release.zip" value="${out.dir}/${release.file.name}.zip"/>
9  <property name="release.tar" value="${out.dir}/${release.file.name}.tar"/>
10  <property name="release.tar.gz" value="${out.dir}/${release.file.name}.tar.gz"/>
11  <property name="release.tar.bz2" value="${out.dir}/${release.file.name}.tar.bz2"/>
12
13  <property name="excludes.list" value="configure, moz/zipped/**, **/.svn **/.gitignore, **/.git, warn, set_soenv, solver/**, makefile.mk, config.log, config.parms, config.status, bootstrap, autom4te.cache/**, MacOSXX86Env.*, external/unowinreg/unowinreg.dll" />
14  <property name="excludes.executables" value="solenv/bin/macosx-create-bundle, solenv/bin/linkoo, solenv/bin/localize, solenv/bin/createpdbrelocators, solenv/bin/langwrap, solenv/bin/makedepn, solenv/bin/packmodule, solenv/bin/rpm-wrapper, solenv/bin/relocate, solenv/bin/receditor, solenv/bin/subsequenttests, **/*.sh, **/*.bat, **/*.exe, configure.cmd, oowintool, config.sub, config.guess, **/*.pl"/>
15  <property name="includes.mk" value="inc/unxmac*.mk inc/unxlng*.mk inc/wntmsci*.mk inc/unxsol*.mk" />
16  <property name="excludes.outdirs" value="**/unxmacx*/**, **/unxlng*/**, **/unxsol*/**, **/wntmsci*/**" />
17
18
19  <target name="clean">
20    <echo level="verbose" message="### clean output files:"/>
21    <delete file="${release.zip}" verbose="true"/>
22    <delete file="${release.tar}" verbose="true"/>
23    <delete file="${release.tar.gz}" verbose="true"/>
24    <delete file="${release.tar.bz2}" verbose="true"/>
25  </target>
26
27  <target name="source.zip">
28    <echo level="verbose" message="### creating ${release.zip} ..."/>
29    <echo level="verbose" message="### basedir=${basedir}"/>
30    <echo level="verbose" message="### source.root=${source.root}"/>
31    <echo level="verbose" message="### out.dir =${out.dir}"/>
32    <zip destfile="${release.zip}">
33
34      <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/>
35      <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/>
36      <zipfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/>
37      <zipfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/>
38      <zipfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/>
39      <zipfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/>
40      <zipfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/>
41      <zipfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/>
42    </zip>
43    <echo level="verbose" message="   ... DONE"/>
44  </target>
45
46  <target name="source.tar">
47    <echo level="verbose" message="### creating intermediate ${release.tar} ..."/>
48    <tar destfile="${release.tar}" longfile="gnu">
49      <tarfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/>
50      <tarfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/>
51      <tarfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/>
52      <tarfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/>
53      <tarfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/>
54      <tarfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/>
55      <tarfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/>
56      <tarfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/>
57    </tar>
58    <echo level="verbose" message="   ... DONE"/>
59  </target>
60
61  <target name="source.tar.gz" depends="source.tar">
62    <echo level="verbose" message="### creating ${release.tar.gz} ..."/>
63    <gzip destfile="${release.tar.gz}" src="${release.tar}"/>
64    <echo level="verbose" message="   ... DONE"/>
65  </target>
66
67  <target name="source.tar.bz2" depends="source.tar">
68    <echo level="verbose" message="### creating ${release.tar.bz2} ..."/>
69    <bzip2 destfile="${release.tar.bz2}" src="${release.tar}"/>
70    <echo level="verbose" message="   ... DONE"/>
71  </target>
72
73  <target name="dummy">
74    <zip destfile="${release.zip}">
75      <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/>
76      <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/>
77    </zip>
78  </target>
79
80  <target name="pack" depends="clean,source.zip,source.tar.gz,source.tar.bz2">
81    <echo level="info" message="### Create source release files for Apache OpenOffice ${aoo.ver} ..."/>
82  </target>
83
84</project>
85