|
a/src/doc/user/xmlmake.sh |
|
b/src/doc/user/xmlmake.sh |
|
... |
|
... |
8 |
# the sgml toolchain. This does not happen with the xml toolchain,
|
8 |
# the sgml toolchain. This does not happen with the xml toolchain,
|
9 |
# which means that external links like
|
9 |
# which means that external links like
|
10 |
# usermanual.html#RCL.CONFIG.INDEXING won't work because fragments are
|
10 |
# usermanual.html#RCL.CONFIG.INDEXING won't work because fragments are
|
11 |
# case-sensitive. This could be solved by converting all ids inside the
|
11 |
# case-sensitive. This could be solved by converting all ids inside the
|
12 |
# source file to upper-case.
|
12 |
# source file to upper-case.
|
|
|
13 |
# - No simple way to produce pdf
|
13 |
|
14 |
|
14 |
# Wherever docbook.xsl and chunk.xsl live
|
15 |
# Wherever docbook.xsl and chunk.xsl live
|
|
|
16 |
# Fbsd
|
|
|
17 |
XSLDIR="/usr/local/share/xsl/docbook/"
|
|
|
18 |
# Mac
|
15 |
XSLDIR="/opt/local/share/xsl/docbook-xsl/"
|
19 |
#XSLDIR="/opt/local/share/xsl/docbook-xsl/"
|
|
|
20 |
#Linux
|
|
|
21 |
#XSLDIR="/usr/share/xml/docbook/stylesheet/docbook-xsl/"
|
16 |
|
22 |
|
17 |
dochunky=1
|
23 |
dochunky=1
|
18 |
test $# -eq 1 && dochunky=0
|
24 |
test $# -eq 1 && dochunky=0
|
19 |
|
25 |
|
20 |
# Remove the SGML header and uncomment the XML one
|
26 |
# Remove the SGML header and uncomment the XML one + convert from iso-8859-1
|
|
|
27 |
# to utf-8
|
21 |
sed -e '\!//FreeBSD//DTD!d' \
|
28 |
sed -e '\!//FreeBSD//DTD!d' \
|
22 |
-e '\!DTD DocBook XML!s/<!--//' \
|
29 |
-e '\!DTD DocBook XML!s/<!--//' \
|
23 |
-e '\!/docbookx.dtd!s/-->//' \
|
30 |
-e '\!/docbookx.dtd!s/-->//' \
|
24 |
< usermanual.sgml > usermanual.xml
|
31 |
< usermanual.sgml \
|
|
|
32 |
| iconv -f iso-8859-1 -t utf-8 \
|
|
|
33 |
> usermanual.xml
|
25 |
|
34 |
|
26 |
# Options common to the single-file and chunked versions
|
35 |
# Options common to the single-file and chunked versions
|
27 |
commonoptions="--stringparam section.autolabel 1 \
|
36 |
commonoptions="--stringparam section.autolabel 1 \
|
28 |
--stringparam section.autolabel.max.depth 3 \
|
37 |
--stringparam section.autolabel.max.depth 3 \
|
29 |
--stringparam section.label.includes.component.label 1 \
|
38 |
--stringparam section.label.includes.component.label 1 \
|