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