-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·70 lines (59 loc) · 2.21 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0"?>
<project name="arcanum" default="dist" basedir=".">
<target name="apidocs">
<docblox title="API Documentation" destdir="doc/api">
<fileset dir="./include">
<include name="*.php" />
</fileset>
</docblox>
</target>
<target name="clean">
<delete dir="./build" includeemptydirs="true" verbose="false" />
<delete file="./arcanum.tar.gz" />
</target>
<target name="compilelocales">
<echo msg="Compiling locales" />
<exec command="msgfmt -c -v -o locale/el_GR/LC_MESSAGES/arcanum.mo locale/el_GR/LC_MESSAGES/arcanum.po" />
</target>
<target name="test">
<exec command="php codecept.phar run" level="debug" checkreturn="true" />
</target>
<target name="prepare" depends="clean,compilelocales">
<mkdir dir="build" />
</target>
<target name="build" depends="prepare">
<echo msg="Copying files to build directory..." />
<copy todir="./build/arcanum" >
<fileset dir=".">
<include name="**.htaccess" />
<include name="*.php" />
<include name="include/**" />
<include name="cli/*.php" />
<include name="images/**" />
<include name="doc/**" />
<include name="javascripts/*.js" />
<include name="lib/**" />
<include name="locale/**" />
<include name="style/**" />
<include name="templates/**" />
<include name="vendor/**" />
<exclude name="**.po" />
<exclude name="style/custom.css" />
</fileset>
</copy>
<mkdir dir="./build/arcanum/config" />
<mkdir dir="./build/arcanum/data" />
</target>
<target name="dist" depends="build">
<echo msg="Creating archive..." />
<tar destfile="./arcanum.tar.gz" compression="gzip">
<fileset dir="./build">
<include name="*" />
</fileset>
</tar>
<echo msg="Build complete." />
</target>
<target name="deploy">
<exec command="./deploy_gunet.sh" dir="./" />
</target>
</project>