-
Notifications
You must be signed in to change notification settings - Fork 9
/
common.xml
46 lines (37 loc) · 1.31 KB
/
common.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<project name="suite-data">
<property name="dejavu_ver" value="2.35"/>
<property name="dejavu_ver_url" value="2_35"/>
<property name="dejavu_dir" value="dejavu-fonts-ttf-${dejavu_ver}"/>
<property name="dejavu_zip" value="${dejavu_dir}.zip"/>
<target name="build-dejavu-fonts">
<mkdir dir="styles"/>
<get src="https://github.com/dejavu-fonts/dejavu-fonts/releases/download/version_${dejavu_ver_url}/${dejavu_zip}" dest="${dejavu_zip}" skipexisting="true"/>
<delete dir="${dejavu_dir}"/>
<unzip src="${dejavu_zip}" dest="${basedir}"/>
<move todir="styles">
<fileset dir="${dejavu_dir}/ttf" includes="*.ttf"/>
</move>
</target>
<target name="clean-dejavu-fonts">
<delete dir="${dejavu_dir}"/>
<delete failonerror="false">
<fileset dir="styles" includes="DejaVu*.ttf"/>
</delete>
</target>
<target name="purge-dejavu-fonts">
<delete file="${dejavu_zip}"/>
</target>
<target name="readme">
<concat>
<fileset dir="." includes="README"/>
</concat>
</target>
<target name="default-assemble">
<mkdir dir="target"/>
<zip destfile="target/${ant.project.name}.zip">
<fileset dir="." includes="styles/**"/>
<fileset dir="." includes="workspaces/**"/>
<fileset dir="." includes="demo/**"/>
</zip>
</target>
</project>