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 file="main/README" fullpath="${release.dir.name}/README"/> 37 <zipfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/> 38 <zipfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 39 <zipfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 40 <zipfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 41 <zipfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 42 <zipfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/> 43 </zip> 44 <echo level="verbose" message=" ... DONE"/> 45 </target> 46 47 <target name="source.tar"> 48 <echo level="verbose" message="### creating intermediate ${release.tar} ..."/> 49 <tar destfile="${release.tar}" longfile="gnu"> 50 <tarfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/> 51 <tarfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/> 52 <tarfileset file="main/README" fullpath="${release.dir.name}/README"/> 53 <tarfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/> 54 <tarfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 55 <tarfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 56 <tarfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 57 <tarfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 58 <tarfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/> 59 </tar> 60 <echo level="verbose" message=" ... DONE"/> 61 </target> 62 63 <target name="source.tar.gz" depends="source.tar"> 64 <echo level="verbose" message="### creating ${release.tar.gz} ..."/> 65 <gzip destfile="${release.tar.gz}" src="${release.tar}"/> 66 <echo level="verbose" message=" ... DONE"/> 67 </target> 68 69 <target name="source.tar.bz2" depends="source.tar"> 70 <echo level="verbose" message="### creating ${release.tar.bz2} ..."/> 71 <bzip2 destfile="${release.tar.bz2}" src="${release.tar}"/> 72 <echo level="verbose" message=" ... DONE"/> 73 </target> 74 75 <target name="dummy"> 76 <zip destfile="${release.zip}"> 77 <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/> 78 <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/> 79 </zip> 80 </target> 81 82 <target name="pack" depends="clean,source.zip,source.tar.gz,source.tar.bz2"> 83 <echo level="info" message="### Create source release files for Apache OpenOffice ${aoo.ver} ..."/> 84 </target> 85 86</project> 87