• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<project name="CLDR Distribution" default="all" basedir=".">
2  <target name="init">
3    <tstamp/>
4    <property name="version" value="33.0"/>
5    <property name="dist.dir" value="dist"/>
6    <property name="dist.conf.dir" value="dist.conf"/>
7    <property name="excludes.file" value="${dist.conf.dir}/distExcludes.txt"/>
8    <property name="includes.common.file" value="${dist.conf.dir}/includes-common.txt"/>
9    <property name="includes.tools.file" value="${dist.conf.dir}/includes-tools.txt"/>
10    <property name="includes.keyboards.file" value="${dist.conf.dir}/includes-keyboards.txt"/>
11  </target>
12
13  <target name="all" depends="dist-common,dist-tools,dist-keyboards"/>
14
15  <target name="clean" depends="init" description="Clean out the distribution directory">
16    <delete dir="${dist.dir}"/>
17  </target>
18
19  <target name="dist-excludes" depends="init">
20    <exec dir="scripts" executable="bash">
21      <arg line="distUpdateExcludes.sh"/>
22    </exec>
23  </target>
24
25  <target name="dist-dir">
26    <mkdir dir="${dist.dir}"/>
27  </target>
28
29  <target name="dist-common" depends="init,dist-dir,dist-excludes">
30    <zip destfile="${dist.dir}/core.zip"
31         compress="yes">
32         <fileset
33             excludesfile="${excludes.file}"
34             dir=".."
35             includesfile="${includes.common.file}"
36         />
37    </zip>
38    <symlink link="${dist.dir}/cldr-common-${version}.zip" resource="core.zip"/>
39  </target>
40
41  <target name="dist-tools" depends="init,dist-dir,dist-excludes">
42    <zip destfile="${dist.dir}/tools.zip"
43         compress="yes">
44         <fileset
45             excludesfile="${excludes.file}"
46             dir=".."
47             includesfile="${includes.tools.file}"
48         />
49    </zip>
50    <symlink link="${dist.dir}/cldr-tools-${version}.zip" resource="tools.zip"/>
51  </target>
52  <target name="dist-keyboards" depends="init,dist-dir,dist-excludes">
53    <zip destfile="${dist.dir}/keyboards.zip"
54         compress="yes">
55         <fileset
56             excludesfile="${excludes.file}"
57             dir=".."
58             includesfile="${includes.keyboards.file}"
59         />
60    </zip>
61    <symlink link="${dist.dir}/cldr-keyboards-${version}.zip" resource="keyboards.zip"/>
62  </target>
63</project>
64