| MINGW_INSTALL=mingw32 |
| MINGW_XML_CATALOG=${MINGW_INSTALL}/etc/xml |
| |
| post_install() { |
| if [ ! -e ${MINGW_XML_CATALOG}/catalog ]; then |
| ${MINGW_INSTALL}/bin/xmlcatalog --noout --create ${MINGW_XML_CATALOG}/catalog |
| fi |
| |
| ${MINGW_INSTALL}/bin/xmlcatalog --noout --add "delegatePublic" \ |
| "-//OASIS//DTD DocBook MathML Module" \ |
| "./docbook-mathml" \ |
| ${MINGW_XML_CATALOG}/catalog |
| |
| ${MINGW_INSTALL}/bin/xmlcatalog --noout --add "delegateSystem" \ |
| "http://www.oasis-open.org/docbook/xml/mathml/" \ |
| "./docbook-mathml" \ |
| ${MINGW_XML_CATALOG}/catalog |
| |
| ${MINGW_INSTALL}/bin/xmlcatalog --noout --add "delegateURI" \ |
| "http://www.oasis-open.org/docbook/xml/mathml/" \ |
| "./docbook-mathml" \ |
| ${MINGW_XML_CATALOG}/catalog |
| } |
| |
| post_upgrade() { |
| post_remove $2 |
| post_install $1 |
| } |
| |
| post_remove() { |
| ${MINGW_INSTALL}/bin/xmlcatalog --noout --del ./docbook-mathml ${MINGW_XML_CATALOG}/catalog |
| ${MINGW_INSTALL}/bin/xmlcatalog --noout --del "-//OASIS//DTD DocBook MathML Module V1.1CR1//EN" ${MINGW_XML_CATALOG}/catalog |
| ${MINGW_INSTALL}/bin/xmlcatalog --noout --del "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd" ${MINGW_XML_CATALOG}/catalog |
| } |