1 2 3 4 5 6 7 8 9 10
/usr/bin/install-catalog --add \ /etc/sgml/dsssl-1.3.2.cat \ /usr/share/sgml/openjade-1.3.2/catalog >/dev/null 2>&1 /bin/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/openjade-1.3.2/catalog >/dev/null 2>&1 done
1 2 3 4 5 6 7 8 9 10 11 12 13
if [ "$1" = 0 -o ! -f /usr/share/sgml/openjade-1.3.2/catalog ]; then /bin/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/openjade-1.3.2/catalog >/dev/null 2>&1 done fi if [ "$1" != 0 -a ! -f /usr/share/sgml/openjade-1.3.2/catalog ]; then /usr/bin/install-catalog --remove \ /etc/sgml/dsssl-1.3.2.cat \ /usr/share/sgml/openjade-1.3.2/catalog >/dev/null 2>&1 fi