-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.xml
38 lines (33 loc) · 955 Bytes
/
build.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
<project name="Docky Unread Count" default="package" basedir=".">
<description>
builds docky thunderbird extension
</description>
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="update-script" value="update-badge.py" />
<target name="init">
<mkdir dir="${dist}" />
<mkdir dir="${build}" />
</target>
<target name="package" depends="init">
<copy todir="${build}">
<fileset dir="${src}" />
<filterset>
<filtersfile file="build.properties" />
</filterset>
</copy>
<zip destfile="${dist}/docky-thunderbird.xpi">
<zipfileset dir="${build}">
<exclude name="**/${update-script}" />
</zipfileset>
<zipfileset dir="${build}" filemode="555">
<include name="**/${update-script}" />
</zipfileset>
</zip>
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>