core/w3c-mathml2/w3c-mathml2.install

16 lines
753 B
Plaintext
Raw Normal View History

2011-06-17 05:50:59 +08:00
post_install() {
if [ ! -e etc/xml/catalog ]; then
xmlcatalog --noout --create etc/xml/catalog
fi
xmlcatalog --noout --add public "-//W3C//DTD MathML 2.0//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" etc/xml/catalog
xmlcatalog --noout --add public "-//W3C//DTD MathML//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" etc/xml/catalog
xmlcatalog --noout --add system "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" etc/xml/catalog
}
post_remove() {
xmlcatalog --noout --del "-//W3C//DTD MathML 2.0//EN" etc/xml/catalog
xmlcatalog --noout --del "-//W3C//DTD MathML//EN" etc/xml/catalog
xmlcatalog --noout --del "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" etc/xml/catalog
}