-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
49 lines (39 loc) · 1.65 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="VMKing" default="dist">
<!-- ============================================ -->
<!-- Target: prepare -->
<!-- ============================================ -->
<target name="prepare">
<echo msg="Making directory ./build" />
<mkdir dir="./build" />
</target>
<!-- ============================================ -->
<!-- Target: build -->
<!-- ============================================ -->
<target name="build" depends="prepare">
<echo msg="Deleting files from build directory" />
<delete dir="./build/plg" />
<echo msg="Copying files to build directory..." />
<echo msg="Copying plugin folder" />
<copy todir="./build/plg">
<fileset dir="./src/wp-content/plugins/skinquiry" />
</copy>
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
<!-- ============================================ -->
<target name="dist" depends="build">
<echo msg="Making current timestamp" />
<tstamp>
<format property="zipstamp" pattern="%d%m%y%H%M%S" locale="de-DE" />
</tstamp>
<echo msg="Creating plugin archive..." />
<zip destfile="./build/plg_skinquiry_${zipstamp}.zip">
<fileset dir="./build/plg">
<include name="*" />
<include name="**/*" />
</fileset>
</zip>
<echo msg="Files copied and compressed in build directory OK!" />
</target>
</project>