1<?xml version="1.0" encoding="UTF-8"?> 2<!--*********************************************************** 3 * 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 * 21 ***********************************************************--> 22<project name="Apache OpenOffice" basedir="." default="pack"> 23 24 <property name="out.dir" value="."/> 25 <property name="aoo.name" value="aoo"/> 26 <property name="aoo.ver" value="3.4"/> 27 <property name="release.dir.name" value="${aoo.name}-${aoo.ver}"/> 28 <property name="release.file.name" value="${release.dir.name}-incubating-src"/> 29 <property name="release.zip" value="${out.dir}/${release.file.name}.zip"/> 30 <property name="release.tar" value="${out.dir}/${release.file.name}.tar"/> 31 <property name="release.tar.gz" value="${out.dir}/${release.file.name}.tar.gz"/> 32 <property name="release.tar.bz2" value="${out.dir}/${release.file.name}.tar.bz2"/> 33 34 <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" /> 35 <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"/> 36 <property name="includes.mk" value="inc/unxmac*.mk inc/unxlng*.mk inc/wntmsci*.mk inc/unxsol*.mk" /> 37 <property name="excludes.outdirs" value="**/unxmacx*/**, **/unxlng*/**, **/unxsol*/**, **/wntmsci*/**" /> 38 39 40 <target name="clean"> 41 <echo level="verbose" message="### clean output files:"/> 42 <delete file="${release.zip}" verbose="true"/> 43 <delete file="${release.tar}" verbose="true"/> 44 <delete file="${release.tar.gz}" verbose="true"/> 45 <delete file="${release.tar.bz2}" verbose="true"/> 46 </target> 47 48 <target name="source.zip"> 49 <echo level="verbose" message="### creating ${release.zip} ..."/> 50 <echo level="verbose" message="### basedir=${basedir}"/> 51 <echo level="verbose" message="### source.root=${source.root}"/> 52 <echo level="verbose" message="### out.dir =${out.dir}"/> 53 <zip destfile="${release.zip}"> 54 55 <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/> 56 <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/> 57 <zipfileset file="main/README" fullpath="${release.dir.name}/README"/> 58 <zipfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/> 59 <zipfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 60 <zipfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 61 <zipfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 62 <zipfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 63 <zipfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/> 64 </zip> 65 <echo level="verbose" message=" ... DONE"/> 66 </target> 67 68 <target name="source.tar"> 69 <echo level="verbose" message="### creating intermediate ${release.tar} ..."/> 70 <tar destfile="${release.tar}" longfile="gnu"> 71 <tarfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/> 72 <tarfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/> 73 <tarfileset file="main/README" fullpath="${release.dir.name}/README"/> 74 <tarfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/> 75 <tarfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 76 <tarfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 77 <tarfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 78 <tarfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 79 <tarfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/> 80 </tar> 81 <echo level="verbose" message=" ... DONE"/> 82 </target> 83 84 <target name="source.tar.gz" depends="source.tar"> 85 <echo level="verbose" message="### creating ${release.tar.gz} ..."/> 86 <gzip destfile="${release.tar.gz}" src="${release.tar}"/> 87 <echo level="verbose" message=" ... DONE"/> 88 </target> 89 90 <target name="source.tar.bz2" depends="source.tar"> 91 <echo level="verbose" message="### creating ${release.tar.bz2} ..."/> 92 <bzip2 destfile="${release.tar.bz2}" src="${release.tar}"/> 93 <echo level="verbose" message=" ... DONE"/> 94 </target> 95 96 <target name="dummy"> 97 <zip destfile="${release.zip}"> 98 <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/> 99 <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/> 100 </zip> 101 </target> 102 103 <target name="pack" depends="clean,source.zip,source.tar.gz,source.tar.bz2"> 104 <echo level="info" message="### Create source release files for Apache OpenOffice ${aoo.ver} ..."/> 105 </target> 106 107</project> 108