Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > da73ced3543bcfc1c0a7b0bf21cb95e2 > scriptlet

docbook-dtd42-xml-1.0-1mdk.noarch.rpm

POSTIN

/bin/sh
##
## SGML catalog
##
/usr/bin/xmlcatalog --sgml --noout --add \
	/etc/sgml/xml-docbook-4.2.cat \
	/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/bin/xmlcatalog --sgml --noout --add \
	/etc/sgml/xml-docbook-4.2.cat \
	/usr/share/sgml/docbook/xml-dtd-4.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/docbook/dsssl-stylesheets/catalog ]; then
	/usr/bin/xmlcatalog --sgml --noout --add \
		/etc/sgml/xml-docbook-4.2.cat \
		/usr/share/sgml/openjade/catalog
	/usr/bin/xmlcatalog --sgml --noout --add \
		/etc/sgml/xml-docbook-4.2.cat \
		/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi
# Symlinks
[ ! -e /etc/sgml/xml-docbook.cat ] && \
	ln -s xml-docbook-4.2.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.2//EN" \
	"file:///usr/share/sgml/docbook/xml-dtd-4.2/catalog.xml" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
	"http://www.oasis-open.org/docbook/xml/4.2" \
	"xml-dtd-4.2" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
	"http://www.oasis-open.org/docbook/xml/4.2" \
	"xml-dtd-4.2" $CATALOG

POSTUN

/bin/sh
##
## SGML catalog
##
# Do not remove if upgrade
if [ "$1" = "0" ]; then
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/xml-docbook-4.2.cat \
		/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/xml-docbook-4.2.cat \
		/usr/share/sgml/docbook/xml-dtd-4.2/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/xml-docbook-4.2.cat \
		/usr/share/sgml/openjade/catalog
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/xml-docbook-4.2.cat \
		/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi
# Symlinks
[ -e /etc/sgml/xml-docbook.cat ] && \
	rm -f /etc/sgml/xml-docbook.cat

##
## XML catalog
##

CATALOG=/usr/share/sgml/docbook/xmlcatalog

/usr/bin/xmlcatalog --noout --del \
	"-//OASIS//DTD DocBook XML V4.2//EN" $CATALOG
/usr/bin/xmlcatalog --noout --del \
	"xml-dtd-4.2" $CATALOG