#! /bin/sh -e

PKG=sgmltools-2

 if [ "$1" = "configure" ]; then
  if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ]; then
   ln -sf ../share/doc/$PKG /usr/doc/$PKG
  fi
  # remove nasty old circular catalog
  if [ -x /usr/sbin/update-catalog ]; then
    update-catalog --remove --super /usr/lib/sgml/catalog
  fi
  # remove old ordinary catalog in the super catalog
    update-catalog --remove --super /usr/lib/sgml/stylesheet/dsssl/sgmltools/sgmltools.cat 
 fi

