forked from elinw/Finder-HISTORICAL-PURPOSES-No-maintained
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
54 lines (54 loc) · 2.31 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<project name="finder" default="dev_head" basedir=".">
<tstamp>
<format property="build.date" pattern="%Y-%m-%d" />
</tstamp>
<target name="dev_head" description="Builds test packages based on the development head" depends="rebuild-packages">
<echo msg="Deleting old master builds" />
<delete quiet="yes" includeemptydirs="true">
<fileset dir="*">
<include name="pkg_finder_master.zip" />
</fileset>
</delete>
<echo msg="Build Finder package" />
<zip destfile="pkg_finder_master.zip">
<fileset dir=".">
<include name="packages/**" />
<include name="language/**" />
<include name="pkg_finder.xml" />
</fileset>
</zip>
</target>
<target name="release" description="Builds release packages based on the development head" depends="rebuild-packages">
<echo msg="Build Finder package" />
<zip destfile="releases/pkg_finder_${build.date}.zip">
<fileset dir=".">
<include name="packages/**" />
<include name="language/**" />
<include name="pkg_finder.xml" />
</fileset>
</zip>
</target>
<target name="rebuild-packages" description="Delete old packages">
<echo msg="Deleting packages dir" />
<delete quiet="yes" includeemptydirs="true">
<fileset dir="*">
<include name="packages" />
</fileset>
</delete>
<echo msg="Creating extension packages" />
<mkdir dir="packages" />
<zip destfile="packages/com_finder.zip" basedir="com_finder" />
<zip destfile="packages/files_finder_cli.zip" basedir="cli" />
<zip destfile="packages/files_finder_hathor.zip" basedir="files_finder_hathor" />
<zip destfile="packages/mod_finder.zip" basedir="mod_finder" />
<zip destfile="packages/mod_finder_status.zip" basedir="mod_finder_status" />
<zip destfile="packages/plg_finder_categories.zip" basedir="plg_finder_categories" />
<zip destfile="packages/plg_finder_contacts.zip" basedir="plg_finder_contacts" />
<zip destfile="packages/plg_finder_content.zip" basedir="plg_finder_content" />
<zip destfile="packages/plg_finder_newsfeeds.zip" basedir="plg_finder_newsfeeds" />
<zip destfile="packages/plg_finder_weblinks.zip" basedir="plg_finder_weblinks" />
<zip destfile="packages/plg_system_finder.zip" basedir="plg_system_finder" />
<zip destfile="packages/plg_system_highlight.zip" basedir="plg_system_highlight" />
</target>
</project>