forked from seblucas/cops
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
64 lines (58 loc) · 2.55 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="COPS" default="dist">
<target name="clean" >
<delete>
<fileset dir=".">
<include name="cops.zip" />
<include name="cops-*.zip" />
</fileset>
</delete>
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
<!-- ============================================ -->
<target name="dist" depends="clean">
<echo msg="Creating archive..." />
<property environment="env" />
<property name="cops.release.filename" value="cops.zip"/>
<if>
<isset property="env.TRAVIS_TAG" />
<then>
<property name="cops.release.filename" value="cops-${env.TRAVIS_TAG}.zip" override="true" />
</then>
</if>
<zip destfile="${cops.release.filename}">
<fileset dir=".">
<include name="**" />
<exclude name="components/**" />
<exclude name="node_modules/**" />
<exclude name="test/**" />
<exclude name=".hg*/**" />
<exclude name=".git/**" />
<exclude name="tools/**" />
<exclude name="coverage/**" />
<exclude name="saucetest/**" />
<exclude name="resources/epub-loader/**" />
<exclude name="vendor/twbs/bootstrap/docs/**" />
<exclude name="vendor/twbs/bootstrap/fonts/**" />
<exclude name="vendor/twbs/bootstrap/js/**" />
<exclude name="vendor/twbs/bootstrap/less/**" />
<exclude name="vendor/seblucas/tbszip/stuffs/**" />
<exclude name="vendor/seblucas/php-epub-meta/assets/**" />
<exclude name="vendor/seblucas/php-epub-meta/test/**" />
<exclude name="vendor/dimsemenov/magnific-popup/libs/**" />
<exclude name="vendor/dimsemenov/magnific-popup/website/**" />
<exclude name="*.phar" />
<exclude name="*.zip" />
<exclude name="*.xml" />
<exclude name=".travis.yml" />
<exclude name=".coveralls.yml" />
<exclude name=".scrutinizer.yml" />
<exclude name="config_local.php" />
<exclude name="composer*" />
<exclude name="cops.sublime*" />
</fileset>
</zip>
<echo msg="Files copied and compressed in build directory OK!" />
</target>
</project>