-install-catalog -v 1> /dev/null 2>&1
-if [ $? -eq 0 ]; then
- # The following commands may fail if this is the first time
- # that this package is installed. So we do not check the return value.
- install-catalog --remove /etc/sgml/sgml-ent.cat \
- /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
- install-catalog --remove /etc/sgml/sgml-docbook.cat \
- /etc/sgml/sgml-ent.cat
+INSTALL_CATALOG=/usr/bin/install-catalog
+if [ -x ${INSTALL_CATALOG} ]; then
+ if [ -f ${CAT2} ]; then
+ ${INSTALL_CATALOG} --remove ${CAT1} ${CAT2}
+ fi
+ if [ -f ${CAT4} ]; then
+ ${INSTALL_CATALOG} --remove ${CAT3} ${CAT4}
+ fi