-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
51 lines (46 loc) · 1.9 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Flexslider" default="help">
<target name="help" description="lists available targets">
<exec command="phing -l" outputProperty="help"/>
<echo>${help}</echo>
</target>
<target name="build" description="builds distributable ZIP archive">
<exec command="git archive -o export.zip HEAD" checkreturn="true"/>
<unzip file="export.zip" todir="export"/>
<delete file="export.zip"/>
<move todir="dist/plugins/flexslider">
<fileset dir="export">
<exclude name=".phive/**"/>
<exclude name="build.xml"/>
<exclude name="README.md"/>
<exclude name="teplad.xml"/>
</fileset>
</move>
<mkdir dir="dist/userfiles/plugins/flexslider"/>
<delete dir="export"/>
<zip destfile="flexslider_XH_0.5.5.zip" basedir="dist"/>
<delete dir="dist"/>
</target>
<target name="build-patch" description="builds a distributable update package">
<fail unless="patchee" message="patchee is not defined!"/>
<unzip file="flexslider_XH_0.5.5.zip" todir="current"/>
<unzip file="${patchee}" todir="patchee"/>
<copy todir="dist">
<fileset dir="current">
<different targetdir="patchee" ignoreFileTimes="true"/>
</fileset>
</copy>
<delete>
<fileset dir="dist/flexslider">
<include name="config/config.php"/>
<include name="languages/??.php"/>
<include name="css/stylesheet.css"/>
</fileset>
</delete>
<zip destfile="flexslider_XH_0.5.5_PATCH.zip" basedir="dist"
includeemptydirs="false"/>
<delete dir="patchee" quiet="true"/>
<delete dir="current" quiet="true"/>
<delete dir="dist" quiet="true"/>
</target>
</project>