-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
38 lines (38 loc) · 1.38 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Robokassa Library" default="make" basedir=".">
<tstamp>
<format property="build.date" pattern="%Y-%m-%d" />
</tstamp>
<property name="directory" value="build" />
<property name="prefix" value="lib" />
<property name="extension" value="robokassa" />
<property name="version" value="1.1.1" />
<target name="make-dev" description="Builds the extension release package for development testing.">
<echo msg="Deleting old development build." />
<mkdir dir="${directory}" />
<delete quiet="yes">
<fileset dir="${directory}">
<include name="${prefix}_${extension}_dev.zip" />
</fileset>
</delete>
<echo msg="Making the development ${extension} package." />
<phingcall target="build">
<property name="version" value="dev" />
</phingcall>
</target>
<target name="make" description="Builds the extension release package for a version.">
<echo msg="Making the ${extension} package for version ${version}." />
<mkdir dir="${directory}" />
<phingcall target="build"></phingcall>
</target>
<target name="build" description="Builds the extension release package.">
<zip destfile="${directory}/${prefix}_${extension}_${version}.zip">
<fileset dir=".">
<include name="src/**" />
<include name="LICENSE" />
<include name="README.*" />
<include name="${extension}.*" />
</fileset>
</zip>
</target>
</project>