POSTIN
/bin/sh
# remove possible old references to
# /usr/share/sgml//docbook/dsssl-stylesheets-1.77/catalog
rm -f /etc/sgml/sgml-docbook-\*.cat
for centralized in /etc/sgml/sgml-docbook-*.cat; do
sed -e "/dsssl-stylesheets-[0-9]/D" $centralized > \
$centralized.bak
mv -f $centralized.bak $centralized
done
for centralized in /etc/sgml/sgml-docbook-*.cat; do
/usr/bin/xmlcatalog --sgml --noout --add $centralized \
/usr/share/sgml//docbook/dsssl-stylesheets/catalog
done
POSTUN
/bin/sh
# Do not remove if upgrade
if [ "$1" = "0" ]; then
for centralized in /etc/sgml/sgml-docbook-*.cat; do
/usr/bin/xmlcatalog --sgml --noout --del $centralized \
/usr/share/sgml//docbook/dsssl-stylesheets/catalog
done
fi