contrib/docbook-xsl/post-install
Predrag Ivanović 4c721f6c0a docbook-xsl: Change d/l source to Github, update to 1.79.2
Add patch pending upstream.
2018-08-15 04:35:16 +02:00

37 lines
925 B
Bash
Executable File

#!/bin/sh
PREV=1.79.1
CUR=1.79.2
CATALOG=/etc/xml/catalog
if [ ! -d /etc/xml ]; then
install -m 0755 -d /etc/xml
fi
if [ ! -f ${CATALOG} ]; then
xmlcatalog --noout --create ${CATALOG}
fi
xmlcatalog --noout --del "/usr/share/xml/docbook/xsl-stylesheets-${PREV}" \
${CATALOG}
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/${CUR}" \
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/${CUR}" \
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
${CATALOG}