Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > a6f0b42e854efccc535c9d037514cacc > scriptlet

xhtml1-dtds-1.0-7.1.1.noarch.rpm

POSTIN

/bin/sh
CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
#
# Register it in the super catalog with the appropriate delegates
#
ROOTCATALOG=/etc/xml/catalog

if [ ! -r $ROOTCATALOG ]
then
    /usr/bin/xmlcatalog --noout --create $ROOTCATALOG
fi

if [ -w $ROOTCATALOG ]
then
	/usr/bin/xmlcatalog --noout --add "delegatePublic" \
		"-//W3C//DTD XHTML 1.0" \
		"file://$CATALOG" $ROOTCATALOG
	/usr/bin/xmlcatalog --noout --add "delegateSystem" \
		"http://www.w3.org/TR/xhtml1/DTD" \
		"file://$CATALOG" $ROOTCATALOG
	/usr/bin/xmlcatalog --noout --add "delegateURI" \
		"http://www.w3.org/TR/xhtml1/DTD" \
		"file://$CATALOG" $ROOTCATALOG
fi

POSTUN

/bin/sh
#
# On removal, unregister the xmlcatalog from the supercatalog
#
if [ "$1" = 0 ]; then
    CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
    ROOTCATALOG=/etc/xml/catalog

    if [ -w $ROOTCATALOG ]
    then
	    /usr/bin/xmlcatalog --noout --del \
		    "-//W3C//DTD XHTML 1.0" $ROOTCATALOG
	    /usr/bin/xmlcatalog --noout --del \
		    "http://www.w3.org/TR/xhtml1/DTD" $ROOTCATALOG
	    /usr/bin/xmlcatalog --noout --del \
		    "http://www.w3.org/TR/xhtml1/DTD" $ROOTCATALOG
    fi
fi