-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
46 lines (43 loc) · 1.48 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Phing build file to create the phar file.
@see http://www.phing.info/
Build phar with:
phing dist
-->
<project name="Metatron" default="dist">
<fileset dir="." id="root">
<include name="console.php"/>
</fileset>
<fileset dir="src" id="src">
<include name="**/**"/>
</fileset>
<fileset dir="vendor" id="vendor">
<include name="**/**"/>
<exclude name=".git/**"/>
<exclude name=".svn/**"/>
<exclude name="**/Tests/**"/>
<exclude name="**/tests/**"/>
<exclude name="**/doc/**"/>
<exclude name="**/docs/**"/>
</fileset>
<target name="dist">
<pharpackage destfile="./metatron.phar" basedir="./" clistub="console.php" compression="bzip2">
<metadata>
<element name="version" value="1.0"/>
<element name="authors">
<element name="Matthias Gutjahr">
<element name="e-mail" value="[email protected]"/>
</element>
</element>
</metadata>
<fileset refid="root"/>
<fileset refid="src"/>
<fileset refid="vendor"/>
</pharpackage>
<exec command="git config core.filemode true" />
<exec command="git update-index --chmod=+x metatron.phar" />
<chmod file="./metatron.phar" mode="775" />
<exec command="git add ./metatron.phar" />
</target>
</project>