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
7 xmlcatalog --noout --add "delegatePublic" \
8 "-//OASIS//ENTITIES DocBook XML" \
9 "file:///etc/xml/docbook-xml" \
11 xmlcatalog --noout --add "delegatePublic" \
12 "-//OASIS//DTD DocBook XML" \
13 "file:///etc/xml/docbook-xml" \
15 xmlcatalog --noout --add "delegateSystem" \
16 "http://www.oasis-open.org/docbook/" \
17 "file:///etc/xml/docbook-xml" \
19 xmlcatalog --noout --add "delegateURI" \
20 "http://www.oasis-open.org/docbook/" \
21 "file:///etc/xml/docbook-xml" \
25 # arg 1: the new package version
26 # arg 2: the old package version
28 if [ $(vercmp $2 4.5) -lt 0 ]; then
29 xmlcatalog --del "file:///etc/xml/docbook" etc/xml/catalog > etc/xml/catalog.preserve
34 if [ $(vercmp $2 4.5) -ge 0 ]; then
41 xmlcatalog --noout --del file:///etc/xml/docbook-xml etc/xml/catalog