blob: 2779cfa6ad5272eabe4e333c512631fb6d05ea99 (
plain)
1 #!/bin/sh
2
3 PREV=1.79.1
4 CUR=1.79.2
5 CATALOG=/etc/xml/catalog
6
7 if [ ! -d /etc/xml ]; then
8 install -m 0755 -d /etc/xml
9 fi
10
11 if [ ! -f ${CATALOG} ]; then
12 xmlcatalog --noout --create ${CATALOG}
13 fi
14
15 xmlcatalog --noout --del "/usr/share/xml/docbook/xsl-stylesheets-${PREV}" \
16 ${CATALOG}
17
18 xmlcatalog --noout --add "rewriteSystem" \
19 "http://docbook.sourceforge.net/release/xsl/${CUR}" \
20 "/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
21 ${CATALOG}
22
23 xmlcatalog --noout --add "rewriteURI" \
24 "http://docbook.sourceforge.net/release/xsl/${CUR}" \
25 "/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
26 ${CATALOG}
27
28 xmlcatalog --noout --add "rewriteSystem" \
29 "http://docbook.sourceforge.net/release/xsl/current" \
30 "/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
31 ${CATALOG}
32
33 xmlcatalog --noout --add "rewriteURI" \
34 "http://docbook.sourceforge.net/release/xsl/current" \
35 "/usr/share/xml/docbook/xsl-stylesheets-${CUR}" \
36 ${CATALOG}
|