#!/bin/bash hvconfig_pre() { CAT1="/etc/sgml/sgml-ent.cat" CAT2="/usr/share/sgml/sgml-iso-entities-8879.1986/catalog" CAT3="/etc/sgml/sgml-docbook.cat" CAT4="/etc/sgml/sgml-ent.cat" # Remove the old catalog items prior to upgrading... # First test for presence of 'install-catalog' program 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 fi } hvbuild_post() { ${INSTALL_CATALOG} --add ${CAT1} ${CAT2} ${INSTALL_CATALOG} --add ${CAT3} ${CAT4} }