blob: b1bc56bf9509969fd7eddfc4dcbed8d9e0e8a99e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
_datadir=/usr/share
_rootcatalog=/etc/xml/catalog
post_install() {
if [[ -w $_rootcatalog ]]; then
for v in 5.1; do
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML ${v}//EN" \
"file://${_datadir}/xml/docbook5/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateSystem" \
"http://docbook.org/xml/${v}/dtd/" \
"file://${_datadir}/xml/docbook5/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/dtd/" \
"file://${_datadir}/xml/docbook5/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/rng/" \
"file://${_datadir}/xml/docbook5/schema/rng/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/sch/" \
"file://${_datadir}/xml/docbook5/schema/sch/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/${v}/xsd/" \
"file://${_datadir}/xml/docbook5/schema/xsd/${v}/catalog.xml" \
${_rootcatalog}
done
fi
}
post_remove() {
if [[ -w $_rootcatalog ]]; then
for v in 5.1; do
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook5/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook5/schema/rng/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook5/schema/sch/${v}/catalog.xml" \
${_rootcatalog}
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook5/schema/xsd/${v}/catalog.xml" \
${_rootcatalog}
done
fi
}
|