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-install13
1 files changed, 4 insertions, 9 deletions
diff --git a/base/docbook-xsl/post-install b/base/docbook-xsl/post-install
index 0c471b674..c81456a3c 100644
--- a/base/docbook-xsl/post-install
+++ b/base/docbook-xsl/post-install
@@ -1,14 +1,10 @@
#!/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
+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
-for DBXSLVER in 1.74
-do
+DBXSLVER=1.75.2
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/$DBXSLVER" \
"file:///usr/share/xml/docbook/xsl-stylesheets-$DBXSLVER" \
@@ -25,4 +21,3 @@ xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/current" \
"file:///usr/share/xml/docbook/xsl-stylesheets-$DBXSLVER" \
/etc/xml/catalog
-done