1 2 3 4 5 6
find /etc/sgml -type f \( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print | while read -r catalog; do /usr/bin/install-catalog --add "$catalog" \ /usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog \ >/dev/null 2>&1 done
1 2 3 4 5 6 7 8 9
if [ $1 = 0 -o ! -f /usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog ]; then find /etc/sgml -type f \ \( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print | while read -r catalog; do /usr/bin/install-catalog --remove "$catalog" \ /usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog \ >/dev/null 2>&1 done fi