forked from janguo-de/virtualdomains
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.xml
58 lines (49 loc) · 1.91 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
55
56
57
58
<?xml version="1.0" encoding="UTF-8"?>
<project name="package_vd_build" default="build-all">
<property name="package" value="pkg_virtualdomains" override="true"/>
<php expression="trim(file_get_contents('version'))" returnProperty="vd.version" />
<target name="clean">
<echo msg="Cleaning directories" />
<delete dir="build" includeemptydirs="true" />
</target>
<target name="build-all">
<phingcall target="clean" />
<phingcall target="build" />
</target>
<target name="build">
<echo msg="Building package" />
<mkdir dir="build" />
<copy todir="build" >
<fileset dir=".">
<include name="com_virtualdomains/**" />
<include name="mod_vdlanguage/**" />
<include name="plg_virtualdomains/**" />
<include name="pkg_virtualdomains.xml/**" />
</fileset>
</copy>
<reflexive>
<fileset dir="build">
<include name="com_virtualdomains/com_virtualdomains.xml"/>
<include name="mod_vdlanguage/mod_vdlanguage.xml"/>
<include name="plg_virtualdomains/virtualdomains.xml"/>
<include name="pkg_virtualdomains.xml"/>
</fileset>
<filterchain>
<replaceregexp>
<regexp pattern="{VERSION}" replace="${vd.version}"/>
</replaceregexp>
</filterchain>
</reflexive>
<zip destfile="build/com_virtualdomains.zip" basedir="build/com_virtualdomains" />
<zip destfile="build/plg_virtualdomains.zip" basedir="build/plg_virtualdomains" />
<zip destfile="build/mod_vdlanguage.zip" basedir="build/mod_vdlanguage" />
<mkdir dir="dist" />
<zip destfile="dist/${package}-${vd.version}.zip">
<fileset dir="build">
<include name="*.zip" />
<include name="pkg_virtualdomains.xml" />
</fileset>
</zip>
<delete dir="build" includeemptydirs="true" />
</target>
</project>