POSTIN
/bin/sh
##
## SGML catalog
##
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.1.2.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.1.2.cat \
/usr/share/sgml/docbook/xml-dtd-4.1.2/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.1.2.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.1.2.cat \
/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi
##
## XML catalog
##
CATALOG=/usr/share/sgml/docbook/xmlcatalog
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML" \
"file:///usr/share/sgml/docbook/xml-dtd-4.1.2/xmlcatalog" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"xml-dtd-4.1.2" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"xml-dtd-4.1.2" $CATALOG
POSTUN
/bin/sh
# test xmlcatalog is available before using it...
if [ -x /usr/bin/xmlcatalog ]; then
##
## SGML catalog
##
# Do not remove if upgrade
if [ "$1" = "0" ]; then
/usr/bin/xmlcatalog --sgml --noout --del \
/etc/sgml/xml-docbook-4.1.2.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --del \
/etc/sgml/xml-docbook-4.1.2.cat \
/usr/share/sgml/docbook/xml-dtd-4.1.2/catalog
# 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.1.2.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.1.2.cat \
/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi
##
## XML catalog
##
CATALOG=/usr/share/sgml/docbook/xmlcatalog
if [ -f $CATALOG ]; then
/usr/bin/xmlcatalog --noout --del \
"-//OASIS//DTD DocBook XML" $CATALOG
/usr/bin/xmlcatalog --noout --del \
"xml-dtd-4.1.2" $CATALOG
fi
fi
fi
Triggers
docbook-dtd412-xml <
1.0-10mdk
/bin/sh
CATALOG=/usr/share/sgml/docbook/xmlcatalog
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML" \
"file:///usr/share/sgml/docbook/xml-dtd-4.1.2/xmlcatalog" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"xml-dtd-4.1.2" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"xml-dtd-4.1.2" $CATALOG
#fix old buggy postun
docbook-dtd412-xml <
1.0-15mdk
/bin/sh
if [ -e /usr/share/sgml/openjade/catalog ]; then
/usr/bin/xmlcatalog --sgml --noout --add \
/etc/sgml/xml-docbook-4.1.2.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.1.2.cat \
/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi