forked from tharman/SADE
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_docs.xml
153 lines (120 loc) · 5.25 KB
/
build_docs.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"?>
<!-- ======================================================================
Date: 2013-01
Project: corpus_shell
====================================================================== -->
<project name="cr-xq autdocs" basedir=".">
<description>
targets for corpus_shell
</description>
<!-- <property name="cache.dir" value="data2" />-->
<!-- <property name="out.dir" value="output" />-->
<property name="docs.dir" value="docs" />
<property name="xsl.dir" value="xsl/" />
<property name="scripts.dir" location="build/scripts"/>
<!-- <import file="${scripts.dir}\build.xml" /> -->
<target name="gen-docs" depends="gen-build-info,gen-jsdocs">
</target>
<target name="gen-jsdocs" >
<ant antfile="${scripts.dir}\build_docs.xml" target="gen-jsdoc">
<property name="src.dir" location="scripts/js/query_input/qi.js" />
<property name="docs.dir" location="docs/js/query_input"/>
</ant>
</target>
<target name="gen-jsdocs2" >
<ant antfile="${scripts.dir}\build_docs.xml" target="gen-jsdoc">
<property name="src.dir" location="../../code/fromMDService2/scripts/" />
<property name="docs.dir" location="../../code/fromMDService2/docs"/>
</ant>
</target>
<target name="gen-md2html" description="generate the html version from README and all markdown files (.md) in docs">
<ant antfile="${scripts.dir}\build_docs.xml" target="md2html">
<property name="src.file" location="README.md" />
<property name="out.file" location="README.html"/>
</ant>
<ant antfile="${scripts.dir}\build_docs.xml" target="md2html-all">
</ant>
</target>
<target name="gen-xsldocs" >
<property name="out.fn" value="c_s-xsl"></property>
<ant antfile="${scripts.dir}\build_docs.xml" target="ay-xsl">
<property name="in.dir" location="${xsl.dir}" />
<property name="file.prefix" value="../.." />
<property name="title" value="${out.fn}" />
<property name="parts" value="imports, params, templates, functions" />
<property name="out.dir" location="${docs.dir}/xsltdocs"/>
<property name="out.fn" value="${out.fn}"/>
</ant>
<ant antfile="${scripts.dir}\build_docs.xml" target="gen-dep-graph">
<property name="work.dir" location="${docs.dir}/xsltdocs" />
<property name="in.file" value="${docs.dir}/xsltdocs/${out.fn}.xml"/>
<property name="title" value="${out.fn}-imports" />
<property name="parts" value="imports" />
<property name="out.fn" value="${out.fn}-imports"/>
</ant>
<ant antfile="${scripts.dir}\build_docs.xml" target="gen-dep-graph-each">
<property name="in.dir" location="${xsl.dir}" />
<property name="parts" value="imports, params, templates, functions" />
<property name="work.dir" location="${docs.dir}/xsltdocs/xslts"/>
</ant>
</target>
<target name="gen-xqdocs" >
<!-- <antcall target="gen-xq-callgraph" />-->
<xslt basedir="${docs.dir}/xqdocs/xml" destdir="${docs.dir}/xqdocs/html"
style="src/modules/gendocs/html-module.xsl" >
<param name="style_dir" expression="${style.dir}"/>
<!-- <param name="out_dir" expression="${out.dir}" />
<param name="out_dir" expression="'.'" />
<param name="image_file" expression="${image.file}" />-->
</xslt>
</target>
<target name="gen-xq-callgraph">
<property name="out.fn" value="cr-xq-calls"></property>
<property name="out.dir" value="${docs.dir}/xqdocs/graph"></property>
<ant antfile="${scripts.dir}\build_docs.xml" target="gen-xq-graph-all">
<property name="in.dir" location="src" />
<property name="title" value="${out.fn}" />
<property name="file.prefix" value="../../.." />
<!-- <property name="parts" value="imports, params, templates, functions" />-->
<property name="out.dir" location="${out.dir}"/>
<property name="out.fn" value="${out.fn}"/>
</ant>
<echo>generating graph without utils</echo>
<copy file="${out.dir}/${out.fn}.dot" tofile="${out.dir}/${out.fn}_noUtils.dot" force="true">
<filterchain>
<linecontains negate="true">
<contains value="repo_utils"/>
</linecontains>
<linecontains negate="true">
<contains value="config"/>
</linecontains>
</filterchain>
</copy>
<exec executable="dot">
<arg value="${out.dir}/${out.fn}_noUtils.dot" />
<arg value="-o${out.dir}/${out.fn}_noUtils.svg"/>
<arg value="-Tsvg"/>
</exec>
<exec executable="dot">
<arg value="${out.dir}/${out.fn}_noUtils.dot" />
<arg value="-o${out.dir}/${out.fn}_noUtils.png"/>
<arg value="-Tpng"/>
</exec>
<echo>generating a separate graph for each module</echo>
<ant antfile="${scripts.dir}\build_docs.xml" target="gen-xq-graph-each">
<property name="in.dir" location="src" />
<property name="title" value="${out.fn}" />
<property name="file.prefix" value="../../.." />
<!-- <property name="parts" value="imports, params, templates, functions" />-->
<property name="out.dir" location="${out.dir}"/>
<property name="out.fn" value="${out.fn}"/>
</ant>
</target>
<target name="gen-build-info" >
<ant antfile="${scripts.dir}\build_docs.xml" target="gen-build-info">
<property name="in.dir" location="" />
<property name="other.build" value="build"/>
<property name="out.dir" location="docs"/>
</ant>
</target>
</project>