Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > 4a8b270770f49c9bb795a34be581d765 > scriptlet

docbook-dtd41-sgml-1.0-6mdk.noarch.rpm

POSTIN

/bin/sh
/usr/bin/xmlcatalog --sgml --noout --add \
	/etc/sgml/sgml-docbook-4.1.cat \
	/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
	/etc/sgml/sgml-docbook-4.1.cat \
	/usr/share/sgml/docbook/sgml-dtd-4.1/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/docbook/dsssl-stylesheets/catalog ]; then
	/usr/bin/xmlcatalog --sgml --noout --add \
		/etc/sgml/sgml-docbook-4.1.cat \
		/usr/share/sgml/openjade/catalog
	/usr/bin/xmlcatalog --sgml --noout --add \
		/etc/sgml/sgml-docbook-4.1.cat \
		/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi

POSTUN

/bin/sh
# Do not remove if upgrade
if [ "$1" = "0" ]; then
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/sgml-docbook-4.1.cat \
		/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/sgml-docbook-4.1.cat \
		/usr/share/sgml/docbook/sgml-dtd-4.1/catalog
fi

# 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/docbook/dsssl-stylesheets/catalog ]; then
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/sgml-docbook-4.1.cat \
		/usr/share/sgml/openjade/catalog
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/sgml-docbook-4.1.cat \
		/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi