/[eiffelstudio]/vendor/gobosoft.com/gobo/current/doc/gexslt/build.eant
ViewVC logotype

Contents of /vendor/gobosoft.com/gobo/current/doc/gexslt/build.eant

Parent Directory Parent Directory | Revision Log Revision Log


Revision 90767 - (show annotations)
Tue Jan 22 00:56:30 2013 UTC (6 years, 8 months ago) by manus
File MIME type: text/xml
File size: 3229 byte(s)
Updated svn:eol-style to be native and svn:mime-style to be text/xml

1 <?xml version="1.0"?>
2
3 <project name="gexslt_doc" default="help">
4
5 <description>
6 description: "Gobo Eiffel XSLT documentation"
7 system: "Gobo Eiffel XSLT"
8 copyright: "Copyright (c) 2004, Colin Adams and others"
9 license: "MIT License"
10 date: "$Date$"
11 revision: "$Revision$"
12 </description>
13
14 <target name="help">
15 <echo message="usage:"/>
16 <echo message=" geant install"/>
17 <echo message=" geant -DGESTALT install"/>
18 <echo message=" geant clean"/>
19 <echo message=" geant clobber"/>
20 </target>
21
22 <target name="install">
23 <description>
24 Install the Gobo Eiffel XSLT documentation.
25 </description>
26
27 <set name="xslt_processor" value="gexslt" unless="$GOBO_XSLT_PROCESSOR"/>
28 <set name="xslt_processor" value="${GOBO_XSLT_PROCESSOR}" if="$GOBO_XSLT_PROCESSOR"/>
29
30 <set name="previous" value="index"/>
31 <set name="current" value="index"/>
32 <set name="input_wrapper" value="_wrapper" unless="${GESTALT}"/>
33 <set name="input_wrapper" value="_wrapper_2" if="${GESTALT}"/>
34 <geant target="xslt_and_shift" arguments="options"/>
35 <geant target="xslt_and_shift" arguments="index"/>
36 <set name="input_wrapper" value=""/>
37
38 <geant target="do_all" arguments="install"/>
39 </target>
40
41 <target name="clean">
42 <description>
43 Remove intermediary generated files.
44 </description>
45
46 <geant target="do_all" arguments="clean"/>
47 </target>
48
49 <target name="clobber">
50 <description>
51 Remove all generated files.
52 </description>
53
54 <delete file="index.html"/>
55 <delete file="options.html"/>
56 <delete file="index_wrapper.html"/>
57 <delete file="index_wrapper2.html"/>
58 <delete file="options_wrapper.html"/>
59 <delete file="options_wrapper2.html"/>
60 <geant target="do_all" arguments="clobber"/>
61 </target>
62
63 <!-- Implementation -->
64
65 <target name="init">
66 <!-- do nothing -->
67 </target>
68
69 <target name="xslt_and_shift" export="NONE">
70 <description>
71 Call `xslt' and shift variables `previous' and `current' one chapter forward.
72 </description>
73 <argument name="a_next"/>
74
75 <geant target="xslt" arguments="${previous},${current},${a_next}"/>
76 <!-- Shift parameters -->
77 <set name="previous" value="${current}"/>
78 <set name="current" value="${a_next}"/>
79 </target>
80
81 <target name="xslt" export="NONE">
82 <description>
83 Execute XSL Transformation for argument ${a_file}, ${a_previous}
84 and ${a_next} using processor ${xslt_processor}.
85 </description>
86 <argument name="a_previous"/>
87 <argument name="a_file"/>
88 <argument name="a_next"/>
89
90 <outofdate variable="rebuild" source="${a_file}.xml" target="${a_file}.html"/>
91 <xslt processor="${xslt_processor}" force="${rebuild}" input="${a_file}${input_wrapper}.xml" output="${a_file}.html" stylesheet="${GOBO}/doc/misc/gobo2html2.xsl">
92 <parameter name="previous" value="&quot;'${a_previous}.html'&quot;"/>
93 <parameter name="next" value="&quot;'${a_next}.html'&quot;"/>
94 <parameter name="toc" value="&quot;'index.html'&quot;"/>
95 </xslt>
96 </target>
97
98 <target name="do_all" depend="init">
99 <description>
100 Call 'geant' with the same target ${target} (first argument)
101 in all subdirectories.
102 </description>
103 <argument name="target"/>
104
105 <geant file="build.eant" target="${target}" fork="false" dir="extension"/>
106 </target>
107
108 </project>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mime-type text/xml

  ViewVC Help
Powered by ViewVC 1.1.23