summaryrefslogtreecommitdiffstats
path: root/base/docbook-xsl/post-install
blob: 0c471b674100dad85cb92978e192a6bdb3f518e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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