PREUN
/bin/sh
if [ $1 -eq 0 ]; then
if [ -x /usr/bin/xmlcatalog -a -w /etc/xml/catalog ]; then
/usr/bin/xmlcatalog --noout --del log4j.dtd \
/etc/xml/catalog > /dev/null || :
fi
fi
POSTIN
/bin/sh
# Note that we're using versioned catalog, so this is always ok.
if [ -x /usr/bin/install-catalog -a -d /etc/sgml ]; then
/usr/bin/install-catalog --add \
/etc/sgml/log4j-1.2.9-1.2mdk.cat \
/usr/share/sgml/log4j/catalog > /dev/null || :
fi
if [ -x /usr/bin/xmlcatalog -a -w /etc/xml/catalog ]; then
/usr/bin/xmlcatalog --noout --add system log4j.dtd \
file:///usr/share/sgml/log4j/log4j.dtd /etc/xml/catalog \
> /dev/null || :
fi
POSTUN
/bin/sh
# Note that we're using versioned catalog, so this is always ok.
if [ -x /usr/bin/install-catalog -a -d /etc/sgml ]; then
/usr/bin/install-catalog --remove \
/etc/sgml/log4j-1.2.9-1.2mdk.cat \
/usr/share/sgml/log4j/catalog > /dev/null || :
fi