2010-12-16 01:50:11 +11:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-08-15 04:35:16 +02:00
|
|
|
PREV=1.79.1
|
|
|
|
CUR=1.79.2
|
2016-02-02 22:56:10 -06:00
|
|
|
CATALOG=/etc/xml/catalog
|
2010-12-16 01:50:11 +11:00
|
|
|
|
|
|
|
if [ ! -d /etc/xml ]; then
|
|
|
|
install -m 0755 -d /etc/xml
|
|
|
|
fi
|
|
|
|
|
2016-02-02 22:56:10 -06:00
|
|
|
if [ ! -f ${CATALOG} ]; then
|
|
|
|
xmlcatalog --noout --create ${CATALOG}
|
2010-12-16 01:50:11 +11:00
|
|
|
fi
|
|
|
|
|
2016-02-02 22:56:10 -06:00
|
|
|
xmlcatalog --noout --del "/usr/share/xml/docbook/xsl-stylesheets-${PREV}" \
|
|
|
|
${CATALOG}
|
|
|
|
|
2010-12-16 01:50:11 +11:00
|
|
|
xmlcatalog --noout --add "rewriteSystem" \
|
2016-02-02 22:56:10 -06:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/${CUR}" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
|
|
|
|
${CATALOG}
|
2010-12-16 01:50:11 +11:00
|
|
|
|
|
|
|
xmlcatalog --noout --add "rewriteURI" \
|
2016-02-02 22:56:10 -06:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/${CUR}" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
|
|
|
|
${CATALOG}
|
2010-12-16 01:50:11 +11:00
|
|
|
|
|
|
|
xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
2016-02-02 22:56:10 -06:00
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
|
|
|
|
${CATALOG}
|
2010-12-16 01:50:11 +11:00
|
|
|
|
|
|
|
xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
2016-02-02 22:56:10 -06:00
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
|
|
|
|
${CATALOG}
|