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