source: common/blfs-tool-deps/905-docbook-xml@ 93fd2d0

2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 93fd2d0 was 93fd2d0, checked in by Matthew Burgess <matthew@…>, 13 years ago

Fix ICA build and a couple of other miscellaneous issues. Patch courtesy of Pierre Labastie.

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