1 2 3 4 5 6 7 8 9
for orig in 'http://cdn.docbook.org/release/xsl/1.79.2' \ 'http://cdn.docbook.org/release/xsl/current' \ 'http://docbook.sourceforge.net/release/xsl-ns/current'; do for type in rewriteSystem rewriteURI; do xmlcatalog --noout --add "$type" \ "$orig" 'file:///usr/share/sgml/docbook/xsl-ns-stylesheets-1.79.2' \ /etc/xml/catalog done done
1 2 3 4 5
if [ "$1" = 0 ]; then xmlcatalog --noout --del \ 'file:///usr/share/sgml/docbook/xsl-ns-stylesheets-1.79.2' \ /etc/xml/catalog fi