POSTIN
/bin/sh
##
## SGML catalog
##
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/docbook/xml-dtd-4.5/catalog
# The following lines are for the case in which the style sheets
# were installed after another DTD but before this DTD
if [ -e /usr/share/sgml/openjade/catalog ]; then
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/openjade/catalog
fi
if [ -e /usr/share/sgml/docbook/dsssl-stylesheets/catalog ]; then
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi
# Symlinks
[ ! -e /etc/sgml/xml-docbook.cat ] && \
ln -s xml-docbook-4.5.cat /etc/sgml/xml-docbook.cat
##
## XML catalog
##
CATALOG=/usr/share/sgml/docbook/xmlcatalog
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML V4.5//EN" \
"file:///usr/share/sgml/docbook/xml-dtd-4.5/catalog.xml" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.5" \
"xml-dtd-4.5" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.3" \
"xml-dtd-4.5" $CATALOG
POSTUN
/bin/sh
##
## SGML catalog
##
# Do not remove if upgrade
if [ "$1" = "0" ]; then
if [ -x /usr/bin/xmlcatalog ]; then
/usr/bin/xmlcatalog --sgml --noout --del \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --del \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/docbook/xml-dtd-4.5/catalog
fi
# Symlinks
[ -e /etc/sgml/xml-docbook.cat ] && \
rm -f /etc/sgml/xml-docbook.cat
if [ -x /usr/bin/xmlcatalog ]; then
# The following lines are for the case in which the style sheets
# were not uninstalled because there is still another DTD
if [ -e /usr/share/sgml/openjade/catalog ]; then
/usr/bin/xmlcatalog --sgml --noout --del \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/openjade/catalog
fi
if [ -e /usr/share/sgml/docbook/dsssl-stylesheets/catalog ]; then
/usr/bin/xmlcatalog --sgml --noout --del \
/etc/sgml/xml-docbook-4.5.cat \
/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi
fi
##
## XML catalog
##
CATALOG=/usr/share/sgml/docbook/xmlcatalog
if [ -w $CATALOG -a -x /usr/bin/xmlcatalog ]; then
/usr/bin/xmlcatalog --noout --del \
"-//OASIS//DTD DocBook XML V4.5//EN" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.5" $CATALOG
fi
fi