From 25539cdc77da45e842d59c7fe7cd9809906e6406 Mon Sep 17 00:00:00 2001 From: tnut Date: Tue, 10 Nov 2009 21:00:35 +0100 Subject: maj docbook-xsl#1.75.2-1 --- base/docbook-xsl/post-install | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'base/docbook-xsl/post-install') 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 -- cgit v1.2.3-70-g09d2