-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
42 lines (40 loc) · 1.32 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* PHP Kubectl terminal console
* @author Flávio Gomes da Silva Lisboa <[email protected]>
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*/
-->
<project name="pkc" default="dist">
<!-- ============================================ -->
<!-- Target: prepare -->
<!-- ============================================ -->
<target name="prepare">
<echo msg="Making directory ./build" />
<mkdir dir="./build" />
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
<!-- ============================================ -->
<target name="dist" depends="prepare">
<pharpackage destfile="./build/pkc.phar" basedir="./" clistub="pkc.php" stub="stub.php">
<fileset dir="./">
<include name="**/**" />
<exclude name="stub.php"/>
<exclude name="bin/build"/>
</fileset>
<metadata>
<element name="version" value="1.0" />
<element name="authors">
<element name="Flávio Gomes da Silva Lisboa">
<element name="e-mail" value="[email protected]" />
</element>
</element>
</metadata>
</pharpackage>
<chmod file="./build/pkc.phar" mode="0755" />
<exec command="rm -rf ./tmp.*" passthru="true" />
<echo msg="Application compressed in build directory OK!" />
</target>
</project>