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