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 environment="env"/> 25 <property name="getrevision.script" value="${env.SOLARENV}/bin/getrevision.pl"/> 26 27 <property name="out.dir" value="."/> 28 <property name="aoo.name" value="apache-openoffice"/> 29 <property name="aoo.short.name" value="aoo"/> 30 <property name="aoo.ver" value="4.1.8"/> 31 32 <property name="excludes.list" value="configure, moz/zipped/*.zip, **/.svn **/.gitignore, **/.git, warn, set_soenv, solver/**, makefile.mk, config.log, config.parms, config.status, bootstrap, autom4te.cache/**, LinuxX86Env.*, LinuxX86-64Env.*, MacOSXX86Env.*, MacOSXX64Env.*, winmingw.*, winenv.*, external/unowinreg/unowinreg.dll" /> 33 <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"/> 34 <property name="includes.mk" value="inc/unxmac*.mk inc/unxlng*.mk inc/wntmsci*.mk inc/unxsol*.mk" /> 35 <property name="includes.references" value="references/**/*.pdf references/**/*.ps references/**/*.ini_" /> 36 <property name="excludes.outdirs" value="**/unxmac*/**, **/unxlng*/**, **/unxsol*/**, **/wntmsci*/**" /> 37 38 39 <target name="getrevision"> 40 <exec executable="perl" outputproperty="scm.revision"> 41 <arg value="${getrevision.script}" /> 42 </exec> 43 </target> 44 45 <target name="declarenames" depends="getrevision"> 46 <property name="release.dir.name" value="${aoo.short.name}-${aoo.ver}"/> 47 <property name="release.name" value="${aoo.name}-${aoo.ver}"/> 48 <property name="release.file.name" value="${release.name}-${scm.revision}-src"/> 49 <property name="release.zip" value="${out.dir}/${release.file.name}.zip"/> 50 <property name="release.tar" value="${out.dir}/${release.file.name}.tar"/> 51 <property name="release.tar.gz" value="${out.dir}/${release.file.name}.tar.gz"/> 52 <property name="release.tar.bz2" value="${out.dir}/${release.file.name}.tar.bz2"/> 53 </target> 54 55 <target name="clean" depends="declarenames"> 56 <echo level="verbose" message="### clean output files:"/> 57 <delete file="${release.zip}" verbose="true"/> 58 <delete file="${release.tar}" verbose="true"/> 59 <delete file="${release.tar.gz}" verbose="true"/> 60 <delete file="${release.tar.bz2}" verbose="true"/> 61 </target> 62 63 <target name="source.zip" depends="declarenames"> 64 <echo level="verbose" message="### creating ${release.zip} ..."/> 65 <echo level="verbose" message="### basedir=${basedir}"/> 66 <echo level="verbose" message="### source.root=${source.root}"/> 67 <echo level="verbose" message="### out.dir =${out.dir}"/> 68 <zip destfile="${release.zip}"> 69 70 <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/> 71 <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/> 72 <zipfileset file="main/README" fullpath="${release.dir.name}/README"/> 73 <zipfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/> 74 <zipfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 75 <zipfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 76 <zipfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 77 <zipfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 78 <zipfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/> 79 <zipfileset dir="main/testgraphical" includes="${includes.references}" prefix="${release.dir.name}/main/testgraphical"/> 80 </zip> 81 <echo level="verbose" message=" ... DONE"/> 82 </target> 83 84 <target name="source.tar" depends="declarenames"> 85 <echo level="verbose" message="### creating intermediate ${release.tar} ..."/> 86 <tar destfile="${release.tar}" longfile="gnu"> 87 <tarfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/> 88 <tarfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/> 89 <tarfileset file="main/README" fullpath="${release.dir.name}/README"/> 90 <tarfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/ext_libraries"/> 91 <tarfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 92 <tarfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 93 <tarfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/main"/> 94 <tarfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}" prefix="${release.dir.name}/extras"/> 95 <tarfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/> 96 <tarfileset dir="main/testgraphical" includes="${includes.references}" prefix="${release.dir.name}/main/testgraphical"/> 97 </tar> 98 <echo level="verbose" message=" ... DONE"/> 99 </target> 100 101 <target name="source.tar.gz" depends="source.tar"> 102 <echo level="verbose" message="### creating ${release.tar.gz} ..."/> 103 <gzip destfile="${release.tar.gz}" src="${release.tar}"/> 104 <echo level="verbose" message=" ... DONE"/> 105 </target> 106 107 <target name="source.tar.bz2" depends="source.tar"> 108 <echo level="verbose" message="### creating ${release.tar.bz2} ..."/> 109 <bzip2 destfile="${release.tar.bz2}" src="${release.tar}"/> 110 <echo level="verbose" message=" ... DONE"/> 111 </target> 112 113 <target name="pack" depends="clean,source.zip,source.tar.gz,source.tar.bz2"> 114 <echo level="info" message="### Create source release files for Apache OpenOffice ${aoo.ver} ..."/> 115 </target> 116 117</project> 118