| 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 userman.fo userman.html |
|---|
| 24 | rm -fr *.section |
|---|
| 25 | eval $xslt_proc -o index.section userman.xsl index.html |
|---|
| 26 | eval $xslt_proc -o features.section userman.xsl features.html |
|---|
| 27 | eval $xslt_proc -o nomenclature.section userman.xsl nomenclature.html |
|---|
| 28 | eval $xslt_proc -o messages.section userman.xsl messages.html |
|---|
| 29 | eval $xslt_proc -o objects.section userman.xsl objects.html |
|---|
| 30 | eval $xslt_proc -o protocols.section userman.xsl protocols.html |
|---|
| 31 | eval $xslt_proc -o categories.section userman.xsl categories.html |
|---|
| 32 | eval $xslt_proc -o predicates.section userman.xsl predicates.html |
|---|
| 33 | eval $xslt_proc -o inheritance.section userman.xsl inheritance.html |
|---|
| 34 | eval $xslt_proc -o events.section userman.xsl events.html |
|---|
| 35 | eval $xslt_proc -o threads.section userman.xsl threads.html |
|---|
| 36 | eval $xslt_proc -o errors.section userman.xsl errors.html |
|---|
| 37 | eval $xslt_proc -o documenting.section userman.xsl documenting.html |
|---|
| 38 | eval $xslt_proc -o installing.section userman.xsl installing.html |
|---|
| 39 | eval $xslt_proc -o programming.section userman.xsl programming.html |
|---|
| 40 | |
|---|
| 41 | cat -s \ |
|---|
| 42 | userman.header \ |
|---|
| 43 | index.section \ |
|---|
| 44 | userman.body \ |
|---|
| 45 | features.section nomenclature.section messages.section \ |
|---|
| 46 | objects.section protocols.section categories.section predicates.section \ |
|---|
| 47 | inheritance.section events.section threads.section errors.section \ |
|---|
| 48 | documenting.section installing.section programming.section \ |
|---|
| 49 | userman.footer \ |
|---|
| 50 | > userman.html |
|---|
| 51 | |
|---|
| 52 | java -jar $css2xslfo userman.html -fo userman.fo |
|---|
| 53 | eval $fo_proc -fo userman.fo -pdf userman.pdf |
|---|
| 54 | rm userman.fo userman.html |
|---|
| 55 | rm -fr *.section |
|---|