Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > by-pkgid > 9b03f4dbb10ac9bbbf4bcd0a2365c289 > scriptlet

docbook-style-xsl-1.79.2-4.mga7.noarch.rpm

POSTIN

/bin/sh
CATALOG=/etc/xml/catalog
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
    "http://cdn.docbook.org/release/xsl-nons/1.79.2" \
    "file:///usr/share/sgml/docbook/xsl-stylesheets-1.79.2" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
    "http://cdn.docbook.org/release/xsl-nons/1.79.2" \
    "file:///usr/share/sgml/docbook/xsl-stylesheets-1.79.2" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
    "http://cdn.docbook.org/release/xsl-nons/current/" \
    "file:///usr/share/sgml/docbook/xsl-stylesheets-1.79.2" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
    "http://cdn.docbook.org/release/xsl-nons/current/" \
    "file:///usr/share/sgml/docbook/xsl-stylesheets-1.79.2" $CATALOG
#keep the old one sourceforge URIs at least temporarily
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
    "http://docbook.sourceforge.net/release/xsl/current" \
    "file:///usr/share/sgml/docbook/xsl-stylesheets-1.79.2" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
    "http://docbook.sourceforge.net/release/xsl/current" \
    "file:///usr/share/sgml/docbook/xsl-stylesheets-1.79.2" $CATALOG

POSTUN

/bin/sh
# do not remove on upgrade
if [ "$1" = 0 ]; then
    CATALOG=/etc/xml/catalog
    /usr/bin/xmlcatalog --noout --del \
        "file:///usr/share/sgml/docbook/xsl-stylesheets-1.79.2" $CATALOG
fi