summaryrefslogtreecommitdiffstats
path: root/base/docbook-xsl/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'base/docbook-xsl/post-install')
-rw-r--r--base/docbook-xsl/post-install28
1 files changed, 28 insertions, 0 deletions
diff --git a/base/docbook-xsl/post-install b/base/docbook-xsl/post-install
new file mode 100644
index 000000000..0c471b674
--- /dev/null
+++ b/base/docbook-xsl/post-install
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+
+if [ ! -e /etc/xml/catalog ]
+then
+ echo "/etc/xml/catalog doesn't exist! Please install docbook-xml and run the post-install script!"
+ exit 1
+fi
+
+for DBXSLVER in 1.74
+do
+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
+done