summaryrefslogtreecommitdiffstats
path: root/extra/docbook-xsl/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/docbook-xsl/post-install')
-rw-r--r--extra/docbook-xsl/post-install23
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/docbook-xsl/post-install b/extra/docbook-xsl/post-install
new file mode 100644
index 000000000..c81456a3c
--- /dev/null
+++ b/extra/docbook-xsl/post-install
@@ -0,0 +1,23 @@
+#!/bin/sh
+if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi
+if [ ! -f /etc/xml/catalog ]; then
+ xmlcatalog --noout --create /etc/xml/catalog
+fi
+
+DBXSLVER=1.75.2
+xmlcatalog --noout --add "rewriteSystem" \
+ "http://docbook.sourceforge.net/release/xsl/$DBXSLVER" \
+ "file:///usr/share/xml/docbook/xsl-stylesheets-$DBXSLVER" \
+ /etc/xml/catalog
+xmlcatalog --noout --add "rewriteURI" \
+ "http://docbook.sourceforge.net/release/xsl/$DBXSLVER" \
+ "file:///usr/share/xml/docbook/xsl-stylesheets-$DBXSLVER" \
+ /etc/xml/catalog
+xmlcatalog --noout --add "rewriteSystem" \
+ "http://docbook.sourceforge.net/release/xsl/current" \
+ "file:///usr/share/xml/docbook/xsl-stylesheets-$DBXSLVER" \
+ /etc/xml/catalog
+xmlcatalog --noout --add "rewriteURI" \
+ "http://docbook.sourceforge.net/release/xsl/current" \
+ "file:///usr/share/xml/docbook/xsl-stylesheets-$DBXSLVER" \
+ /etc/xml/catalog