Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > by-pkgid > 4185c9b8272693ab773d270e36f27ee1 > scriptlet

docbook-style-dsssl-1.77-1mdk.noarch.rpm

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