Package log4j12: Scripts

Post install

if [ -x /usr/bin/install-catalog -a -d /etc/sgml ]; then
  /usr/bin/install-catalog --add \
    /etc/sgml/log4j-1.2.17-alt1_20jpp8.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 public "-//APACHE//DTD LOG4J 1.2//EN" \
    file:///usr/share/sgml/log4j/log4j.dtd /etc/xml/catalog \
    > /dev/null
  /usr/bin/xmlcatalog --noout --add system log4j.dtd \
    file:///usr/share/sgml/log4j/log4j.dtd /etc/xml/catalog \
    > /dev/null || :
fi
Post uninstall

1
2
3
4
5
if [ -x /usr/bin/install-catalog -a -d /etc/sgml ]; then
  /usr/bin/install-catalog --remove \
    /etc/sgml/log4j-1.2.17-alt1_20jpp8.cat \
    /usr/share/sgml/log4j/catalog > /dev/null || :
fi
Pre uninstall

1
2
3
4
5
6
7
if [ $1 -eq 0 ]; then
  if [ -x /usr/bin/xmlcatalog -a -w /etc/xml/catalog ]; then
    /usr/bin/xmlcatalog --noout --del \
      file:///usr/share/sgml/log4j/log4j.dtd \
      /etc/xml/catalog > /dev/null || :
  fi
fi