リビジョン | 3b09a401540ea8742b951fca68b190588f1b8eb8 (tree) |
---|---|
日時 | 2012-03-06 22:12:40 |
作者 | matsuand <matsuand@user...> |
コミッター | matsuand |
[BLFS] Added docbook-xml.
@@ -0,0 +1,7 @@ | ||
1 | +echo \ \ Extracting sources... | |
2 | +if ! test -f $DLD/$TARGETBALL; then | |
3 | + echo \ \ Tarball not found: $TARGETBALL && exit 1 | |
4 | +else | |
5 | + unzip $DLD/$TARGETBALL 1> /dev/null || exit 1 | |
6 | +fi | |
7 | + |
@@ -0,0 +1,135 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +VER=4.5 | |
4 | +TARGET=docbook-xml-$VER | |
5 | +TARGETBALL=$TARGET.zip | |
6 | +TARGETDIR=$TARGET | |
7 | + | |
8 | +. ./_blfsset.sh | |
9 | + | |
10 | +echo Check Required... | |
11 | +./_checkRequired.sh unzip libxml2 || exit 1 | |
12 | + | |
13 | +cd $SRC | |
14 | + | |
15 | +echo $TARGET | |
16 | + | |
17 | +echo \ \ Removing old directory... | |
18 | +rm -fr $TARGETDIR | |
19 | + | |
20 | +mkdir -pv $TARGETDIR | |
21 | +cd $TARGETDIR | |
22 | + | |
23 | +. $WRK/_extractZip.sh | |
24 | + | |
25 | +install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5 | |
26 | +install -v -d -m755 /etc/xml | |
27 | +chown -R root:root . | |
28 | + | |
29 | +echo \ \ Copying... | |
30 | +paco -p $TARGET "cp -v -af docbook.cat *.dtd ent/ *.mod \ | |
31 | + /usr/share/xml/docbook/xml-dtd-4.5" \ | |
32 | + 1> $LOG/$TARGET.1_copy.log 2>&1 | |
33 | + | |
34 | +if [ ! -e /etc/xml/docbook ]; then | |
35 | + paco -p+ $TARGET "xmlcatalog --noout --create /etc/xml/docbook" \ | |
36 | + 1> $LOG/$TARGET.2_xml.log 2>&1 || exit 1 | |
37 | +fi | |
38 | + | |
39 | +xmlcatalog --noout --add "public" \ | |
40 | + "-//OASIS//DTD DocBook XML V4.5//EN" \ | |
41 | + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ | |
42 | + /etc/xml/docbook | |
43 | + | |
44 | +xmlcatalog --noout --add "public" \ | |
45 | + "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ | |
46 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \ | |
47 | + /etc/xml/docbook | |
48 | +xmlcatalog --noout --add "public" \ | |
49 | + "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ | |
50 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \ | |
51 | + /etc/xml/docbook | |
52 | +xmlcatalog --noout --add "public" \ | |
53 | + "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ | |
54 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \ | |
55 | + /etc/xml/docbook | |
56 | +xmlcatalog --noout --add "public" \ | |
57 | + "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ | |
58 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \ | |
59 | + /etc/xml/docbook | |
60 | +xmlcatalog --noout --add "public" \ | |
61 | + "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ | |
62 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \ | |
63 | + /etc/xml/docb | |
64 | +echo Extracting...ook | |
65 | +xmlcatalog --noout --add "public" \ | |
66 | + "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \ | |
67 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \ | |
68 | + /etc/xml/docbook | |
69 | +xmlcatalog --noout --add "public" \ | |
70 | + "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \ | |
71 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \ | |
72 | + /etc/xml/docbook | |
73 | +xmlcatalog --noout --add "public" \ | |
74 | + "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ | |
75 | + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \ | |
76 | + /etc/xml/docbook | |
77 | +xmlcatalog --noout --add "rewriteSystem" \ | |
78 | + "http://www.oasis-open.org/docbook/xml/4.5" \ | |
79 | + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ | |
80 | + /etc/xml/docbook | |
81 | +xmlcatalog --noout --add "rewriteURI" \ | |
82 | + "http://www.oasis-open.org/docbook/xml/4.5" \ | |
83 | + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ | |
84 | + /etc/xml/docbook | |
85 | + | |
86 | +if [ ! -e /etc/xml/catalog ]; then | |
87 | + paco -p+ $TARGET "xmlcatalog --noout --create /etc/xml/catalog" \ | |
88 | + 1>> $LOG/$TARGET.2_xml.log 2>&1 || exit 1 | |
89 | +fi | |
90 | +xmlcatalog --noout --add "delegatePublic" \ | |
91 | + "-//OASIS//ENTITIES DocBook XML" \ | |
92 | + "file:///etc/xml/docbook" \ | |
93 | + /etc/xml/catalog && | |
94 | +xmlcatalog --noout --add "delegatePublic" \ | |
95 | + "-//OASIS//DTD DocBook XML" \ | |
96 | + "file:///etc/xml/docbook" \ | |
97 | + /etc/xml/catalog && | |
98 | +xmlcatalog --noout --add "delegateSystem" \ | |
99 | + "http://www.oasis-open.org/docbook/" \ | |
100 | + "file:///etc/xml/docbook" \ | |
101 | + /etc/xml/catalog && | |
102 | +xmlcatalog --noout --add "delegateURI" \ | |
103 | + "http://www.oasis-open.org/docbook/" \ | |
104 | + "file:///etc/xml/docbook" \ | |
105 | + /etc/xml/catalog | |
106 | + | |
107 | +for DTDVERSION in 4.1.2 4.2 4.3 4.4 | |
108 | +do | |
109 | + xmlcatalog --noout --add "public" \ | |
110 | + "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \ | |
111 | + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \ | |
112 | + /etc/xml/docbook | |
113 | + xmlcatalog --noout --add "rewriteSystem" \ | |
114 | + "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ | |
115 | + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ | |
116 | + /etc/xml/docbook | |
117 | + xmlcatalog --noout --add "rewriteURI" \ | |
118 | + "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ | |
119 | + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ | |
120 | + /etc/xml/docbook | |
121 | + xmlcatalog --noout --add "delegateSystem" \ | |
122 | + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ | |
123 | + "file:///etc/xml/docbook" \ | |
124 | + /etc/xml/catalog | |
125 | + xmlcatalog --noout --add "delegateURI" \ | |
126 | + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ | |
127 | + "file:///etc/xml/docbook" \ | |
128 | + /etc/xml/catalog | |
129 | +done | |
130 | + | |
131 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
132 | + | |
133 | +echo \ \ Removing directory... | |
134 | +cd .. && rm -fr $TARGETDIR | |
135 | + |