[9c9775f] | 1 | #!/bin/bash
|
---|
[e8fb8ef] | 2 |
|
---|
| 3 | # $Id$
|
---|
| 4 |
|
---|
| 5 | set -e
|
---|
| 6 |
|
---|
| 7 | cd /sources
|
---|
| 8 | mkdir docbook-xml
|
---|
| 9 | cd docbook-xml
|
---|
[9c9775f] | 10 | unzip ../docbook-xml-4.5.zip
|
---|
| 11 | install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5
|
---|
[e8fb8ef] | 12 | install -v -d -m755 /etc/xml
|
---|
| 13 | chown -R root:root .
|
---|
| 14 | cp -v -af docbook.cat *.dtd ent/ *.mod \
|
---|
[9c9775f] | 15 | /usr/share/xml/docbook/xml-dtd-4.5
|
---|
[e8fb8ef] | 16 | if [ ! -e /etc/xml/docbook ]; then
|
---|
| 17 | xmlcatalog --noout --create /etc/xml/docbook
|
---|
| 18 | fi
|
---|
| 19 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 20 | "-//OASIS//DTD DocBook XML V4.5//EN" \
|
---|
| 21 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
|
---|
[e8fb8ef] | 22 | /etc/xml/docbook
|
---|
| 23 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 24 | "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
|
---|
| 25 | "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
|
---|
[e8fb8ef] | 26 | /etc/xml/docbook
|
---|
| 27 | xmlcatalog --noout --add "public" \
|
---|
| 28 | "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
|
---|
[9c9775f] | 29 | "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
|
---|
[e8fb8ef] | 30 | /etc/xml/docbook
|
---|
| 31 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 32 | "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
|
---|
| 33 | "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
|
---|
[e8fb8ef] | 34 | /etc/xml/docbook
|
---|
| 35 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 36 | "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
|
---|
| 37 | "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
|
---|
[e8fb8ef] | 38 | /etc/xml/docbook
|
---|
| 39 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 40 | "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
|
---|
| 41 | "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
|
---|
[e8fb8ef] | 42 | /etc/xml/docbook
|
---|
| 43 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 44 | "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
|
---|
| 45 | "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
|
---|
[e8fb8ef] | 46 | /etc/xml/docbook
|
---|
| 47 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 48 | "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
|
---|
| 49 | "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
|
---|
[e8fb8ef] | 50 | /etc/xml/docbook
|
---|
| 51 | xmlcatalog --noout --add "public" \
|
---|
[9c9775f] | 52 | "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
|
---|
| 53 | "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
|
---|
[e8fb8ef] | 54 | /etc/xml/docbook
|
---|
| 55 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[9c9775f] | 56 | "http://www.oasis-open.org/docbook/xml/4.5" \
|
---|
| 57 | "file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
---|
[e8fb8ef] | 58 | /etc/xml/docbook
|
---|
| 59 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[9c9775f] | 60 | "http://www.oasis-open.org/docbook/xml/4.5" \
|
---|
| 61 | "file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
---|
[e8fb8ef] | 62 | /etc/xml/docbook
|
---|
| 63 | if [ ! -e /etc/xml/catalog ]; then
|
---|
| 64 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
| 65 | fi
|
---|
| 66 | xmlcatalog --noout --add "delegatePublic" \
|
---|
| 67 | "-//OASIS//ENTITIES DocBook XML" \
|
---|
| 68 | "file:///etc/xml/docbook" \
|
---|
| 69 | /etc/xml/catalog
|
---|
| 70 | xmlcatalog --noout --add "delegatePublic" \
|
---|
| 71 | "-//OASIS//DTD DocBook XML" \
|
---|
| 72 | "file:///etc/xml/docbook" \
|
---|
| 73 | /etc/xml/catalog
|
---|
| 74 | xmlcatalog --noout --add "delegateSystem" \
|
---|
| 75 | "http://www.oasis-open.org/docbook/" \
|
---|
| 76 | "file:///etc/xml/docbook" \
|
---|
| 77 | /etc/xml/catalog
|
---|
| 78 | xmlcatalog --noout --add "delegateURI" \
|
---|
| 79 | "http://www.oasis-open.org/docbook/" \
|
---|
| 80 | "file:///etc/xml/docbook" \
|
---|
| 81 | /etc/xml/catalog
|
---|
[9c9775f] | 82 | for DTDVERSION in 4.1.2 4.2 4.3 4.4
|
---|
[e8fb8ef] | 83 | do
|
---|
| 84 | xmlcatalog --noout --add "public" \
|
---|
| 85 | "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
|
---|
| 86 | "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
|
---|
| 87 | /etc/xml/docbook
|
---|
| 88 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 89 | "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
|
---|
[9c9775f] | 90 | "file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
---|
[e8fb8ef] | 91 | /etc/xml/docbook
|
---|
| 92 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 93 | "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
|
---|
[9c9775f] | 94 | "file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
---|
[e8fb8ef] | 95 | /etc/xml/docbook
|
---|
| 96 | xmlcatalog --noout --add "delegateSystem" \
|
---|
| 97 | "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
|
---|
| 98 | "file:///etc/xml/docbook" \
|
---|
| 99 | /etc/xml/catalog
|
---|
| 100 | xmlcatalog --noout --add "delegateURI" \
|
---|
| 101 | "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
|
---|
| 102 | "file:///etc/xml/docbook" \
|
---|
| 103 | /etc/xml/catalog
|
---|
| 104 | done
|
---|
| 105 | cd ..
|
---|
| 106 | rm -rf docbook-xml
|
---|
| 107 |
|
---|
| 108 | exit
|
---|