root/trunk/manuals/refman/refman.sh

Revision 4662, 13.2 KB (checked in by pmoura, 5 days ago)

Updated copyright notice.

  • Property svn:mime-type set to application/x-sh
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#!/bin/bash
2
3## ================================================================
4## Logtalk - Open source object-oriented logic programming language
5## Release 2.35.0
6##
7## Copyright (c) 1998-2009 Paulo Moura.        All Rights Reserved.
8## Logtalk is free software.  You can redistribute it and/or modify
9## it under the terms of the "Artistic License 2.0" as published by
10## The Perl Foundation. Consult the "LICENSE.txt" file for details.
11## ================================================================
12
13css2xslfo=/Applications/XML/CSSToXSLFO/css2xslfo1_6.jar
14
15xslt_proc=xsltproc
16# xslt_proc=xalan
17# xslt_proc=sabcmd
18
19#fo_proc=fop
20fo_proc=xep
21# fo_proc=xinc
22
23# rm -f refman.fo refman.html
24rm -f *.section directives/*.section builtins/*.section methods/*.section control/*.section
25
26eval $xslt_proc -o index.section refman.xsl index.html
27eval $xslt_proc -o grammar.section refman.xsl grammar.html
28eval $xslt_proc -o directives/encoding1.section refman.xsl directives/encoding1.html
29eval $xslt_proc -o directives/set_logtalk_flag2.section refman.xsl directives/set_logtalk_flag2.html
30eval $xslt_proc -o directives/if1.section refman.xsl directives/if1.html
31eval $xslt_proc -o directives/elif1.section refman.xsl directives/elif1.html
32eval $xslt_proc -o directives/else0.section refman.xsl directives/else0.html
33eval $xslt_proc -o directives/endif0.section refman.xsl directives/endif0.html
34eval $xslt_proc -o directives/calls1.section refman.xsl directives/calls1.html
35eval $xslt_proc -o directives/category1_3.section refman.xsl directives/category1_3.html
36eval $xslt_proc -o directives/dynamic0.section refman.xsl directives/dynamic0.html
37eval $xslt_proc -o directives/end_category0.section refman.xsl directives/end_category0.html
38eval $xslt_proc -o directives/end_object0.section refman.xsl directives/end_object0.html
39eval $xslt_proc -o directives/end_protocol0.section refman.xsl directives/end_protocol0.html
40eval $xslt_proc -o directives/info1.section refman.xsl directives/info1.html
41eval $xslt_proc -o directives/initialization1.section refman.xsl directives/initialization1.html
42eval $xslt_proc -o directives/object1_5.section refman.xsl directives/object1_5.html
43eval $xslt_proc -o directives/protocol1_2.section refman.xsl directives/protocol1_2.html
44eval $xslt_proc -o directives/synchronized0.section refman.xsl directives/synchronized0.html
45eval $xslt_proc -o directives/threaded0.section refman.xsl directives/threaded0.html
46eval $xslt_proc -o directives/uses1.section refman.xsl directives/uses1.html
47eval $xslt_proc -o directives/alias3.section refman.xsl directives/alias3.html
48eval $xslt_proc -o directives/discontiguous1.section refman.xsl directives/discontiguous1.html
49eval $xslt_proc -o directives/dynamic1.section refman.xsl directives/dynamic1.html
50eval $xslt_proc -o directives/info2.section refman.xsl directives/info2.html
51eval $xslt_proc -o directives/meta_predicate1.section refman.xsl directives/meta_predicate1.html
52eval $xslt_proc -o directives/mode2.section refman.xsl directives/mode2.html
53eval $xslt_proc -o directives/op3.section refman.xsl directives/op3.html
54eval $xslt_proc -o directives/private1.section refman.xsl directives/private1.html
55eval $xslt_proc -o directives/protected1.section refman.xsl directives/protected1.html
56eval $xslt_proc -o directives/public1.section refman.xsl directives/public1.html
57eval $xslt_proc -o directives/synchronized1.section refman.xsl directives/synchronized1.html
58eval $xslt_proc -o directives/uses2.section refman.xsl directives/uses2.html
59eval $xslt_proc -o builtins/current_category1.section refman.xsl builtins/current_category1.html
60eval $xslt_proc -o builtins/current_object1.section refman.xsl builtins/current_object1.html
61eval $xslt_proc -o builtins/current_protocol1.section refman.xsl builtins/current_protocol1.html
62eval $xslt_proc -o builtins/category_property2.section refman.xsl builtins/category_property2.html
63eval $xslt_proc -o builtins/object_property2.section refman.xsl builtins/object_property2.html
64eval $xslt_proc -o builtins/protocol_property2.section refman.xsl builtins/protocol_property2.html
65eval $xslt_proc -o builtins/create_category4.section refman.xsl builtins/create_category4.html
66eval $xslt_proc -o builtins/create_object4.section refman.xsl builtins/create_object4.html
67eval $xslt_proc -o builtins/create_protocol3.section refman.xsl builtins/create_protocol3.html
68eval $xslt_proc -o builtins/abolish_category1.section refman.xsl builtins/abolish_category1.html
69eval $xslt_proc -o builtins/abolish_object1.section refman.xsl builtins/abolish_object1.html
70eval $xslt_proc -o builtins/abolish_protocol1.section refman.xsl builtins/abolish_protocol1.html
71eval $xslt_proc -o builtins/extends_object2_3.section refman.xsl builtins/extends_object2_3.html
72eval $xslt_proc -o builtins/extends_protocol2_3.section refman.xsl builtins/extends_protocol2_3.html
73eval $xslt_proc -o builtins/extends_category2_3.section refman.xsl builtins/extends_category2_3.html
74eval $xslt_proc -o builtins/implements_protocol2_3.section refman.xsl builtins/implements_protocol2_3.html
75eval $xslt_proc -o builtins/imports_category2_3.section refman.xsl builtins/imports_category2_3.html
76eval $xslt_proc -o builtins/instantiates_class2_3.section refman.xsl builtins/instantiates_class2_3.html
77eval $xslt_proc -o builtins/specializes_class2_3.section refman.xsl builtins/specializes_class2_3.html
78eval $xslt_proc -o builtins/complements_object2.section refman.xsl builtins/complements_object2.html
79eval $xslt_proc -o builtins/abolish_events5.section refman.xsl builtins/abolish_events5.html
80eval $xslt_proc -o builtins/current_event5.section refman.xsl builtins/current_event5.html
81eval $xslt_proc -o builtins/define_events5.section refman.xsl builtins/define_events5.html
82eval $xslt_proc -o builtins/threaded1.section refman.xsl builtins/threaded1.html
83eval $xslt_proc -o builtins/threaded_call1_2.section refman.xsl builtins/threaded_call1_2.html
84eval $xslt_proc -o builtins/threaded_once1_2.section refman.xsl builtins/threaded_once1_2.html
85eval $xslt_proc -o builtins/threaded_ignore1.section refman.xsl builtins/threaded_ignore1.html
86eval $xslt_proc -o builtins/threaded_exit1_2.section refman.xsl builtins/threaded_exit1_2.html
87eval $xslt_proc -o builtins/threaded_peek1_2.section refman.xsl builtins/threaded_peek1_2.html
88eval $xslt_proc -o builtins/threaded_wait1.section refman.xsl builtins/threaded_wait1.html
89eval $xslt_proc -o builtins/threaded_notify1.section refman.xsl builtins/threaded_notify1.html
90eval $xslt_proc -o builtins/logtalk_compile1.section refman.xsl builtins/logtalk_compile1.html
91eval $xslt_proc -o builtins/logtalk_compile2.section refman.xsl builtins/logtalk_compile2.html
92eval $xslt_proc -o builtins/logtalk_load1.section refman.xsl builtins/logtalk_load1.html
93eval $xslt_proc -o builtins/logtalk_load2.section refman.xsl builtins/logtalk_load2.html
94eval $xslt_proc -o builtins/logtalk_library_path2.section refman.xsl builtins/logtalk_library_path2.html
95eval $xslt_proc -o builtins/current_logtalk_flag2.section refman.xsl builtins/current_logtalk_flag2.html
96eval $xslt_proc -o builtins/set_logtalk_flag2.section refman.xsl builtins/set_logtalk_flag2.html
97eval $xslt_proc -o builtins/forall2.section refman.xsl builtins/forall2.html
98eval $xslt_proc -o builtins/retractall1.section refman.xsl builtins/retractall1.html
99eval $xslt_proc -o methods/parameter2.section refman.xsl methods/parameter2.html
100eval $xslt_proc -o methods/self1.section refman.xsl methods/self1.html
101eval $xslt_proc -o methods/sender1.section refman.xsl methods/sender1.html
102eval $xslt_proc -o methods/this1.section refman.xsl methods/this1.html
103eval $xslt_proc -o methods/current_predicate1.section refman.xsl methods/current_predicate1.html
104eval $xslt_proc -o methods/predicate_property2.section refman.xsl methods/predicate_property2.html
105eval $xslt_proc -o methods/abolish1.section refman.xsl methods/abolish1.html
106eval $xslt_proc -o methods/asserta1.section refman.xsl methods/asserta1.html
107eval $xslt_proc -o methods/assertz1.section refman.xsl methods/assertz1.html
108eval $xslt_proc -o methods/clause2.section refman.xsl methods/clause2.html
109eval $xslt_proc -o methods/retract1.section refman.xsl methods/retract1.html
110eval $xslt_proc -o methods/retractall1.section refman.xsl methods/retractall1.html
111eval $xslt_proc -o methods/call1.section refman.xsl methods/call1.html
112eval $xslt_proc -o methods/bagof3.section refman.xsl methods/bagof3.html
113eval $xslt_proc -o methods/findall3.section refman.xsl methods/findall3.html
114eval $xslt_proc -o methods/forall2.section refman.xsl methods/forall2.html
115eval $xslt_proc -o methods/setof3.section refman.xsl methods/setof3.html
116eval $xslt_proc -o methods/before3.section refman.xsl methods/before3.html
117eval $xslt_proc -o methods/after3.section refman.xsl methods/after3.html
118eval $xslt_proc -o methods/phrase2.section refman.xsl methods/phrase2.html
119eval $xslt_proc -o methods/phrase3.section refman.xsl methods/phrase3.html
120eval $xslt_proc -o methods/expand_term2.section refman.xsl methods/expand_term2.html
121eval $xslt_proc -o methods/term_expansion2.section refman.xsl methods/term_expansion2.html
122eval $xslt_proc -o methods/expand_goal2.section refman.xsl methods/expand_goal2.html
123eval $xslt_proc -o methods/goal_expansion2.section refman.xsl methods/goal_expansion2.html
124eval $xslt_proc -o control/to_object2.section refman.xsl control/to_object2.html
125eval $xslt_proc -o control/to_self1.section refman.xsl control/to_self1.html
126eval $xslt_proc -o control/super1.section refman.xsl control/super1.html
127eval $xslt_proc -o control/external1.section refman.xsl control/external1.html
128eval $xslt_proc -o control/context2.section refman.xsl control/context2.html
129eval $xslt_proc -o control/direct1.section refman.xsl control/direct1.html
130
131cat -s \
132    refman.header \
133    index.section \
134    refman.body \
135    grammar.section \
136    directives.header \
137    directives/encoding1.section \
138    directives/set_logtalk_flag2.section \
139    directives/if1.section \
140    directives/elif1.section \
141    directives/else0.section \
142    directives/endif0.section \
143    directives/calls1.section \
144    directives/category1_3.section \
145    directives/dynamic0.section \
146    directives/end_category0.section \
147    directives/end_object0.section \
148    directives/end_protocol0.section \
149    directives/info1.section \
150    directives/initialization1.section \
151    directives/object1_5.section \
152    directives/protocol1_2.section \
153    directives/synchronized0.section \
154    directives/threaded0.section \
155    directives/uses1.section \
156    directives/alias3.section \
157    directives/discontiguous1.section \
158    directives/dynamic1.section \
159    directives/info2.section \
160    directives/meta_predicate1.section \
161    directives/mode2.section \
162    directives/op3.section \
163    directives/private1.section \
164    directives/protected1.section \
165    directives/public1.section \
166    directives/synchronized1.section \
167    directives/uses2.section \
168    builtins.header \
169    builtins/current_category1.section \
170    builtins/current_object1.section \
171    builtins/current_protocol1.section \
172    builtins/category_property2.section \
173    builtins/object_property2.section \
174    builtins/protocol_property2.section \
175    builtins/create_category4.section \
176    builtins/create_object4.section \
177    builtins/create_protocol3.section \
178    builtins/abolish_category1.section \
179    builtins/abolish_object1.section \
180    builtins/abolish_protocol1.section \
181    builtins/extends_object2_3.section \
182    builtins/extends_protocol2_3.section \
183    builtins/extends_category2_3.section \
184    builtins/implements_protocol2_3.section \
185    builtins/imports_category2_3.section \
186    builtins/instantiates_class2_3.section \
187    builtins/specializes_class2_3.section \
188    builtins/complements_object2.section \
189    builtins/abolish_events5.section \
190    builtins/current_event5.section \
191    builtins/define_events5.section \
192    builtins/threaded1.section \
193    builtins/threaded_call1_2.section \
194    builtins/threaded_once1_2.section \
195    builtins/threaded_ignore1.section \
196    builtins/threaded_exit1_2.section \
197    builtins/threaded_peek1_2.section \
198    builtins/threaded_wait1.section \
199    builtins/threaded_notify1.section \
200    builtins/logtalk_compile1.section \
201    builtins/logtalk_compile2.section \
202    builtins/logtalk_load1.section \
203    builtins/logtalk_load2.section \
204    builtins/logtalk_library_path2.section \
205    builtins/current_logtalk_flag2.section \
206    builtins/set_logtalk_flag2.section \
207    builtins/forall2.section \
208    builtins/retractall1.section \
209    methods.header \
210    methods/parameter2.section \
211    methods/self1.section \
212    methods/sender1.section \
213    methods/this1.section \
214    methods/current_predicate1.section \
215    methods/predicate_property2.section \
216    methods/abolish1.section \
217    methods/asserta1.section \
218    methods/assertz1.section \
219    methods/clause2.section \
220    methods/retract1.section \
221    methods/retractall1.section \
222    methods/call1.section \
223    methods/bagof3.section \
224    methods/findall3.section \
225    methods/forall2.section \
226    methods/setof3.section \
227    methods/before3.section \
228    methods/after3.section \
229    methods/phrase2.section \
230    methods/phrase3.section \
231    methods/expand_term2.section \
232    methods/term_expansion2.section \
233    methods/expand_goal2.section \
234    methods/goal_expansion2.section \
235    control.header \
236    control/to_object2.section \
237    control/to_self1.section \
238    control/super1.section \
239    control/external1.section \
240    control/context2.section \
241    control/direct1.section \
242    refman.footer \
243    > refman.html
244
245java -jar $css2xslfo refman.html -fo refman.fo
246eval $fo_proc -fo refman.fo -pdf refman.pdf
247
248# rm refman.fo refman.html
249rm -f *.section directives/*.section builtins/*.section methods/*.section control/*.section
Note: See TracBrowser for help on using the browser.