forked from rvolz/BicBucStriim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
59 lines (53 loc) · 2.18 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="BicBucStriim" default="dist">
<target name="clean" >
<delete>
<fileset dir=".">
<include name="bicbucstriim.zip" />
<include name="bicbucstriim-*.zip" />
</fileset>
</delete>
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
<!-- ============================================ -->
<target name="dist" depends="clean">
<echo msg="Creating archive..." />
<property environment="env" />
<property name="bicbucstriim.release.filename" value="bicbucstriim.zip"/>
<if>
<isset property="env.TRAVIS_TAG" />
<then>
<property name="bicbucstriim.release.filename" value="bicbucstriim-${env.TRAVIS_TAG}.zip" override="true" />
</then>
</if>
<zip destfile="${bicbucstriim.release.filename}">
<fileset dir=".">
<include name="img/**" />
<include name="js/**" />
<include name="style/style.css" />
<include name="style/jquery/**" />
<include name="config/**" />
<include name="lang/**" />
<include name="src/**" />
<include name="vendor/**" />
<include name="templates/**" />
<include name="data/**" />
<exclude name="data/authors/*.png" />
<exclude name="data/titles/*.png" />
<include name="index.php" />
<include name="installcheck.php" />
<include name="composer.json" />
<include name="php.ini" />
<include name="favicon.ico" />
<include name="bbs-icon.png" />
<include name="CHANGELOG.md" />
<include name=".htaccess" />
<include name="NOTICE" />
<include name="LICENSE" />
<include name="README.md" />
</fileset>
</zip>
<echo msg="Files copied and compressed in build directory OK!" />
</target>
</project>