Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 001819bc0fc436b6ce258f6ac5871e10 > scriptlet

docbook-dtd30-sgml-1.0-10mdv2010.1.noarch.rpm

POSTIN

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

POSTUN

/bin/sh
# Do not remove if upgrade
if [ "$1" = "0" -a -x /usr/bin/xmlcatalog ]; then
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/sgml-docbook-3.0.cat \
		/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
	/usr/bin/xmlcatalog --sgml --noout --del \
		/etc/sgml/sgml-docbook-3.0.cat \
		/usr/share/sgml/docbook/sgml-dtd-3.0/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/sgml-docbook-3.0.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/sgml-docbook-3.0.cat \
		  /usr/share/sgml/docbook/dsssl-stylesheets/catalog
  fi
fi

Triggers

docbook-dtd30-sgml < 1.0-3mdk

/bin/sh
if [ -e /usr/share/sgml/openjade/catalog ]; then
	/usr/bin/xmlcatalog --sgml --noout --add \
		/etc/sgml/sgml-docbook-3.0.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/sgml-docbook-3.0.cat \
		/usr/share/sgml/docbook/dsssl-stylesheets/catalog
fi