| 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 | |
|---|
| 13 | css2xslfo=/Applications/XML/CSSToXSLFO/css2xslfo1_6.jar |
|---|
| 14 | |
|---|
| 15 | xslt_proc=xsltproc |
|---|
| 16 | # xslt_proc=xalan |
|---|
| 17 | # xslt_proc=sabcmd |
|---|
| 18 | |
|---|
| 19 | #fo_proc=fop |
|---|
| 20 | fo_proc=xep |
|---|
| 21 | # fo_proc=xinc |
|---|
| 22 | |
|---|
| 23 | # rm -f refman.fo refman.html |
|---|
| 24 | rm -f *.section directives/*.section builtins/*.section methods/*.section control/*.section |
|---|
| 25 | |
|---|
| 26 | eval $xslt_proc -o index.section refman.xsl index.html |
|---|
| 27 | eval $xslt_proc -o grammar.section refman.xsl grammar.html |
|---|
| 28 | eval $xslt_proc -o directives/encoding1.section refman.xsl directives/encoding1.html |
|---|
| 29 | eval $xslt_proc -o directives/set_logtalk_flag2.section refman.xsl directives/set_logtalk_flag2.html |
|---|
| 30 | eval $xslt_proc -o directives/if1.section refman.xsl directives/if1.html |
|---|
| 31 | eval $xslt_proc -o directives/elif1.section refman.xsl directives/elif1.html |
|---|
| 32 | eval $xslt_proc -o directives/else0.section refman.xsl directives/else0.html |
|---|
| 33 | eval $xslt_proc -o directives/endif0.section refman.xsl directives/endif0.html |
|---|
| 34 | eval $xslt_proc -o directives/calls1.section refman.xsl directives/calls1.html |
|---|
| 35 | eval $xslt_proc -o directives/category1_3.section refman.xsl directives/category1_3.html |
|---|
| 36 | eval $xslt_proc -o directives/dynamic0.section refman.xsl directives/dynamic0.html |
|---|
| 37 | eval $xslt_proc -o directives/end_category0.section refman.xsl directives/end_category0.html |
|---|
| 38 | eval $xslt_proc -o directives/end_object0.section refman.xsl directives/end_object0.html |
|---|
| 39 | eval $xslt_proc -o directives/end_protocol0.section refman.xsl directives/end_protocol0.html |
|---|
| 40 | eval $xslt_proc -o directives/info1.section refman.xsl directives/info1.html |
|---|
| 41 | eval $xslt_proc -o directives/initialization1.section refman.xsl directives/initialization1.html |
|---|
| 42 | eval $xslt_proc -o directives/object1_5.section refman.xsl directives/object1_5.html |
|---|
| 43 | eval $xslt_proc -o directives/protocol1_2.section refman.xsl directives/protocol1_2.html |
|---|
| 44 | eval $xslt_proc -o directives/synchronized0.section refman.xsl directives/synchronized0.html |
|---|
| 45 | eval $xslt_proc -o directives/threaded0.section refman.xsl directives/threaded0.html |
|---|
| 46 | eval $xslt_proc -o directives/uses1.section refman.xsl directives/uses1.html |
|---|
| 47 | eval $xslt_proc -o directives/alias3.section refman.xsl directives/alias3.html |
|---|
| 48 | eval $xslt_proc -o directives/discontiguous1.section refman.xsl directives/discontiguous1.html |
|---|
| 49 | eval $xslt_proc -o directives/dynamic1.section refman.xsl directives/dynamic1.html |
|---|
| 50 | eval $xslt_proc -o directives/info2.section refman.xsl directives/info2.html |
|---|
| 51 | eval $xslt_proc -o directives/meta_predicate1.section refman.xsl directives/meta_predicate1.html |
|---|
| 52 | eval $xslt_proc -o directives/mode2.section refman.xsl directives/mode2.html |
|---|
| 53 | eval $xslt_proc -o directives/op3.section refman.xsl directives/op3.html |
|---|
| 54 | eval $xslt_proc -o directives/private1.section refman.xsl directives/private1.html |
|---|
| 55 | eval $xslt_proc -o directives/protected1.section refman.xsl directives/protected1.html |
|---|
| 56 | eval $xslt_proc -o directives/public1.section refman.xsl directives/public1.html |
|---|
| 57 | eval $xslt_proc -o directives/synchronized1.section refman.xsl directives/synchronized1.html |
|---|
| 58 | eval $xslt_proc -o directives/uses2.section refman.xsl directives/uses2.html |
|---|
| 59 | eval $xslt_proc -o builtins/current_category1.section refman.xsl builtins/current_category1.html |
|---|
| 60 | eval $xslt_proc -o builtins/current_object1.section refman.xsl builtins/current_object1.html |
|---|
| 61 | eval $xslt_proc -o builtins/current_protocol1.section refman.xsl builtins/current_protocol1.html |
|---|
| 62 | eval $xslt_proc -o builtins/category_property2.section refman.xsl builtins/category_property2.html |
|---|
| 63 | eval $xslt_proc -o builtins/object_property2.section refman.xsl builtins/object_property2.html |
|---|
| 64 | eval $xslt_proc -o builtins/protocol_property2.section refman.xsl builtins/protocol_property2.html |
|---|
| 65 | eval $xslt_proc -o builtins/create_category4.section refman.xsl builtins/create_category4.html |
|---|
| 66 | eval $xslt_proc -o builtins/create_object4.section refman.xsl builtins/create_object4.html |
|---|
| 67 | eval $xslt_proc -o builtins/create_protocol3.section refman.xsl builtins/create_protocol3.html |
|---|
| 68 | eval $xslt_proc -o builtins/abolish_category1.section refman.xsl builtins/abolish_category1.html |
|---|
| 69 | eval $xslt_proc -o builtins/abolish_object1.section refman.xsl builtins/abolish_object1.html |
|---|
| 70 | eval $xslt_proc -o builtins/abolish_protocol1.section refman.xsl builtins/abolish_protocol1.html |
|---|
| 71 | eval $xslt_proc -o builtins/extends_object2_3.section refman.xsl builtins/extends_object2_3.html |
|---|
| 72 | eval $xslt_proc -o builtins/extends_protocol2_3.section refman.xsl builtins/extends_protocol2_3.html |
|---|
| 73 | eval $xslt_proc -o builtins/extends_category2_3.section refman.xsl builtins/extends_category2_3.html |
|---|
| 74 | eval $xslt_proc -o builtins/implements_protocol2_3.section refman.xsl builtins/implements_protocol2_3.html |
|---|
| 75 | eval $xslt_proc -o builtins/imports_category2_3.section refman.xsl builtins/imports_category2_3.html |
|---|
| 76 | eval $xslt_proc -o builtins/instantiates_class2_3.section refman.xsl builtins/instantiates_class2_3.html |
|---|
| 77 | eval $xslt_proc -o builtins/specializes_class2_3.section refman.xsl builtins/specializes_class2_3.html |
|---|
| 78 | eval $xslt_proc -o builtins/complements_object2.section refman.xsl builtins/complements_object2.html |
|---|
| 79 | eval $xslt_proc -o builtins/abolish_events5.section refman.xsl builtins/abolish_events5.html |
|---|
| 80 | eval $xslt_proc -o builtins/current_event5.section refman.xsl builtins/current_event5.html |
|---|
| 81 | eval $xslt_proc -o builtins/define_events5.section refman.xsl builtins/define_events5.html |
|---|
| 82 | eval $xslt_proc -o builtins/threaded1.section refman.xsl builtins/threaded1.html |
|---|
| 83 | eval $xslt_proc -o builtins/threaded_call1_2.section refman.xsl builtins/threaded_call1_2.html |
|---|
| 84 | eval $xslt_proc -o builtins/threaded_once1_2.section refman.xsl builtins/threaded_once1_2.html |
|---|
| 85 | eval $xslt_proc -o builtins/threaded_ignore1.section refman.xsl builtins/threaded_ignore1.html |
|---|
| 86 | eval $xslt_proc -o builtins/threaded_exit1_2.section refman.xsl builtins/threaded_exit1_2.html |
|---|
| 87 | eval $xslt_proc -o builtins/threaded_peek1_2.section refman.xsl builtins/threaded_peek1_2.html |
|---|
| 88 | eval $xslt_proc -o builtins/threaded_wait1.section refman.xsl builtins/threaded_wait1.html |
|---|
| 89 | eval $xslt_proc -o builtins/threaded_notify1.section refman.xsl builtins/threaded_notify1.html |
|---|
| 90 | eval $xslt_proc -o builtins/logtalk_compile1.section refman.xsl builtins/logtalk_compile1.html |
|---|
| 91 | eval $xslt_proc -o builtins/logtalk_compile2.section refman.xsl builtins/logtalk_compile2.html |
|---|
| 92 | eval $xslt_proc -o builtins/logtalk_load1.section refman.xsl builtins/logtalk_load1.html |
|---|
| 93 | eval $xslt_proc -o builtins/logtalk_load2.section refman.xsl builtins/logtalk_load2.html |
|---|
| 94 | eval $xslt_proc -o builtins/logtalk_library_path2.section refman.xsl builtins/logtalk_library_path2.html |
|---|
| 95 | eval $xslt_proc -o builtins/current_logtalk_flag2.section refman.xsl builtins/current_logtalk_flag2.html |
|---|
| 96 | eval $xslt_proc -o builtins/set_logtalk_flag2.section refman.xsl builtins/set_logtalk_flag2.html |
|---|
| 97 | eval $xslt_proc -o builtins/forall2.section refman.xsl builtins/forall2.html |
|---|
| 98 | eval $xslt_proc -o builtins/retractall1.section refman.xsl builtins/retractall1.html |
|---|
| 99 | eval $xslt_proc -o methods/parameter2.section refman.xsl methods/parameter2.html |
|---|
| 100 | eval $xslt_proc -o methods/self1.section refman.xsl methods/self1.html |
|---|
| 101 | eval $xslt_proc -o methods/sender1.section refman.xsl methods/sender1.html |
|---|
| 102 | eval $xslt_proc -o methods/this1.section refman.xsl methods/this1.html |
|---|
| 103 | eval $xslt_proc -o methods/current_predicate1.section refman.xsl methods/current_predicate1.html |
|---|
| 104 | eval $xslt_proc -o methods/predicate_property2.section refman.xsl methods/predicate_property2.html |
|---|
| 105 | eval $xslt_proc -o methods/abolish1.section refman.xsl methods/abolish1.html |
|---|
| 106 | eval $xslt_proc -o methods/asserta1.section refman.xsl methods/asserta1.html |
|---|
| 107 | eval $xslt_proc -o methods/assertz1.section refman.xsl methods/assertz1.html |
|---|
| 108 | eval $xslt_proc -o methods/clause2.section refman.xsl methods/clause2.html |
|---|
| 109 | eval $xslt_proc -o methods/retract1.section refman.xsl methods/retract1.html |
|---|
| 110 | eval $xslt_proc -o methods/retractall1.section refman.xsl methods/retractall1.html |
|---|
| 111 | eval $xslt_proc -o methods/call1.section refman.xsl methods/call1.html |
|---|
| 112 | eval $xslt_proc -o methods/bagof3.section refman.xsl methods/bagof3.html |
|---|
| 113 | eval $xslt_proc -o methods/findall3.section refman.xsl methods/findall3.html |
|---|
| 114 | eval $xslt_proc -o methods/forall2.section refman.xsl methods/forall2.html |
|---|
| 115 | eval $xslt_proc -o methods/setof3.section refman.xsl methods/setof3.html |
|---|
| 116 | eval $xslt_proc -o methods/before3.section refman.xsl methods/before3.html |
|---|
| 117 | eval $xslt_proc -o methods/after3.section refman.xsl methods/after3.html |
|---|
| 118 | eval $xslt_proc -o methods/phrase2.section refman.xsl methods/phrase2.html |
|---|
| 119 | eval $xslt_proc -o methods/phrase3.section refman.xsl methods/phrase3.html |
|---|
| 120 | eval $xslt_proc -o methods/expand_term2.section refman.xsl methods/expand_term2.html |
|---|
| 121 | eval $xslt_proc -o methods/term_expansion2.section refman.xsl methods/term_expansion2.html |
|---|
| 122 | eval $xslt_proc -o methods/expand_goal2.section refman.xsl methods/expand_goal2.html |
|---|
| 123 | eval $xslt_proc -o methods/goal_expansion2.section refman.xsl methods/goal_expansion2.html |
|---|
| 124 | eval $xslt_proc -o control/to_object2.section refman.xsl control/to_object2.html |
|---|
| 125 | eval $xslt_proc -o control/to_self1.section refman.xsl control/to_self1.html |
|---|
| 126 | eval $xslt_proc -o control/super1.section refman.xsl control/super1.html |
|---|
| 127 | eval $xslt_proc -o control/external1.section refman.xsl control/external1.html |
|---|
| 128 | eval $xslt_proc -o control/context2.section refman.xsl control/context2.html |
|---|
| 129 | eval $xslt_proc -o control/direct1.section refman.xsl control/direct1.html |
|---|
| 130 | |
|---|
| 131 | cat -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 | |
|---|
| 245 | java -jar $css2xslfo refman.html -fo refman.fo |
|---|
| 246 | eval $fo_proc -fo refman.fo -pdf refman.pdf |
|---|
| 247 | |
|---|
| 248 | # rm refman.fo refman.html |
|---|
| 249 | rm -f *.section directives/*.section builtins/*.section methods/*.section control/*.section |
|---|