OCaml 4.14.0 rebuild
[arch-packages.git] / docbook-xml / trunk / docbook-xml.install
blob97a6243cdf452825c41de205a4edf7d3a03b2446
1 post_install() {
2   if [ -e etc/xml/catalog.preserve ]; then
3     mv etc/xml/catalog.preserve etc/xml/catalog
4   elif [ ! -e etc/xml/catalog ]; then
5     xmlcatalog --noout --create etc/xml/catalog
6   fi
7   xmlcatalog --noout --add "delegatePublic" \
8     "-//OASIS//ENTITIES DocBook XML" \
9     "file:///etc/xml/docbook-xml" \
10     etc/xml/catalog
11   xmlcatalog --noout --add "delegatePublic" \
12     "-//OASIS//DTD DocBook XML" \
13     "file:///etc/xml/docbook-xml" \
14     etc/xml/catalog
15   xmlcatalog --noout --add "delegateSystem" \
16     "http://www.oasis-open.org/docbook/" \
17     "file:///etc/xml/docbook-xml" \
18     etc/xml/catalog
19   xmlcatalog --noout --add "delegateURI" \
20     "http://www.oasis-open.org/docbook/" \
21     "file:///etc/xml/docbook-xml" \
22     etc/xml/catalog
25 # arg 1:  the new package version
26 # arg 2:  the old package version
27 pre_upgrade() {
28   if [ $(vercmp $2 4.5) -lt 0 ]; then
29     xmlcatalog --del "file:///etc/xml/docbook" etc/xml/catalog > etc/xml/catalog.preserve
30   fi
33 post_upgrade() {
34   if [ $(vercmp $2 4.5) -ge 0 ]; then
35     post_remove
36   fi
37   post_install
40 post_remove() {
41   xmlcatalog --noout --del file:///etc/xml/docbook-xml etc/xml/catalog