1 2 3 4 5 6 7
if [ $1 = 1 ] ; then /usr/bin/xmlcatalog --noout --add "nextCatalog" \ "file:///usr/share/xml/alt-entities/catalog.xml" \ "" \ /etc/xml/catalog ||: /usr/bin/xmlcatalog --noout --sgml --add "/usr/share/xml/alt-entities/catalog.sgml" ||: fi
1 2 3 4 5 6
if [ $1 = "0" ] ; then /usr/bin/xmlcatalog --noout --del \ "file:///usr/share/xml/alt-entities/catalog.xml" \ /etc/xml/catalog ||: /usr/bin/xmlcatalog --noout --sgml --del /etc/sgml/catalog "/usr/share/xml/alt-entities/catalog.sgml" ||: fi