/
build.xml
152 lines (133 loc) · 6.64 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8"?>
<project name="bartlett/php-compatinfo" default="help">
<!--
======================================================================
Project base directory
======================================================================
-->
<resolvepath propertyName="project.dir" file="${phing.dir}/.." />
<!--
======================================================================
Dependencies
- bartlett/phing-builder
======================================================================
-->
<property name="phingBuilder.dir" value="${phing.dir}" />
<!--
======================================================================
Project properties
======================================================================
-->
<property name="build.short-version" value="4.5" />
<property name="build.version" value="${build.short-version}.0" />
<!--
======================================================================
Generate the full documentation
======================================================================
-->
<property name="adoc.homedir" value="C:/asciidoc-8.6.9" />
<property name="adoc.targetdir" value="D:/laurent-laville.org/www/php5/compatinfo/manual/${build.short-version}/en" />
<property name="adoc.backend" value="bootstrap" />
<property name="adoc.theme" value="" />
<property name="adoc.conf-file" value="${project.dir}/docs/bootstrap3.conf" />
<property name="adoc.sourcedir" value="${project.dir}/docs" />
<property name="adoc.extension" value=".asciidoc" />
<property name="adoc.hhc.homedir" value="C:/Program Files/HTML Help Workshop" />
<!-- Assets of installed AsciiDoc-Bootstrap backend -->
<fileset dir="${env.USERPROFILE}/.asciidoc/backends/bootstrap" id="adoc-assets">
<include name="bootstrap/**" />
<include name="fonts/**" />
<include name="images/icons/ui.totop.png" />
<include name="javascripts/**" />
<include name="stylesheets/**" />
<exclude name="stylesheets/tocaffix.css" />
<exclude name="images/**/Thumbs.db" />
</fileset>
<fileset dir="${adoc.sourcedir}" id="adoc-project-assets">
<include name="stylesheets/cover.css" />
<include name="stylesheets/tocmmenu.css" />
<include name="themes.json" />
<include name="images/**" />
<exclude name="images/**/Thumbs.db" />
</fileset>
<fileset dir="${adoc.sourcedir}" id="adoc-sources">
<include name="index.asciidoc" />
<include name="cover.asciidoc" />
<include name="user-guide**.asciidoc" />
<include name="developer-guide.asciidoc" />
<include name="developer-guide--api.asciidoc" />
<include name="developer-guide--plugins.asciidoc" />
<include name="developer-guide--cache-plugin.asciidoc" />
<include name="developer-guide--log-plugin.asciidoc" />
<include name="developer-guide--notifier-plugin.asciidoc" />
<include name="developer-guide--analysers.asciidoc" />
<include name="developer-guide--filters.asciidoc" />
<include name="migration-guide**.asciidoc" />
<include name="getting-started.asciidoc" />
<include name="references.asciidoc" />
</fileset>
<fileset dir="${adoc.sourcedir}" id="adoc-manpages">
<include name="phpcompatinfo.1.asciidoc" />
</fileset>
<fileset dir="${adoc.sourcedir}" id="adoc-books">
<include name="phpcompatinfo-book.asciidoc" />
</fileset>
<fileset dir="${adoc.sourcedir}" id="adoc-outputs">
<include name="index.html" />
<include name="cover.html" />
<include name="user-guide**.html" />
<include name="developer-guide.html" />
<include name="developer-guide--api.html" />
<include name="developer-guide--plugins.html" />
<include name="developer-guide--cache-plugin.html" />
<include name="developer-guide--log-plugin.html" />
<include name="developer-guide--notifier-plugin.html" />
<include name="developer-guide--analysers.html" />
<include name="developer-guide--filters.html" />
<include name="migration-guide**.html" />
<include name="getting-started.html" />
<include name="references.html" />
<include name="phpcompatinfo.1.html" />
<include name="phpcompatinfo-book.html" />
<include name="phpcompatinfo-book.epub" />
<include name="phpcompatinfo-book.pdf" />
</fileset>
<!--
======================================================================
For each notifications by Phing GrowlNotify Task
======================================================================
-->
<property name="notify.growl-password" value="mamasam" />
<!--
======================================================================
Imported modules of Phing Builder
(should be placed after user definitions)
======================================================================
-->
<property name="modules.adoc" value="true" />
<property name="modules.notify" value="true" />
<import file="${phingBuilder.dir}/modules/build.xml" />
<!--
======================================================================
Actions
======================================================================
-->
<property name="php.homedir" value="C:/UwAmp/bin/php/php-5.6.10" />
<target name="update:rep">
<exec executable="${php.homedir}/php">
<arg path="${project.dir}/bin/phpcompatinfo" />
<arg value="--output=${project.dir}/docs/compatibility_analysis.out.asciidoc.NEW" />
<arg value="analyser:run" />
<arg value="${project.dir}/src" />
</exec>
</target>
<target name="all" depends="adoc.all" />
<target name="help">
<echo>A toolchain manager for ${phing.project.name} ${build.version}</echo>
<echo> </echo>
<echo>targets: </echo>
<echo> adoc.all Generate the full documentation </echo>
<echo> all Do all tasks above </echo>
<echo> update:rep Update reports before building all docs </echo>
</target>
</project>