MINGW-packages/mingw-w64-w3c-mathml2/w3c-mathml2-CLANGARM64.install
2023-05-09 07:13:28 +02:00

27 lines
1.1 KiB
Plaintext

MINGW_INSTALL=/clangarm64
post_install() {
if [ ! -e etc/xml/catalog ]; then
${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog
fi
${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --add public "-//W3C//DTD MathML 2.0//EN" "../../share/xml/w3c/mathml2/mathml2.dtd" ${MINGW_INSTALL}/etc/xml/catalog
${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --add public "-//W3C//DTD MathML//EN" "../../share/xml/w3c/mathml2/mathml2.dtd" ${MINGW_INSTALL}/etc/xml/catalog
${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --add system "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" "../../share/xml/w3c/mathml2/mathml2.dtd" ${MINGW_INSTALL}/etc/xml/catalog
}
post_remove() {
${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --del "-//W3C//DTD MathML 2.0//EN" ${MINGW_INSTALL}/etc/xml/catalog
${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --del "-//W3C//DTD MathML//EN" ${MINGW_INSTALL}/etc/xml/catalog
${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --del "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" ${MINGW_INSTALL}/etc/xml/catalog
}
post_upgrade() {
if [ $(vercmp $2 4.5) -ge 0 ]; then
post_remove
fi
post_install
}