blob: 732bdc85eddf175edbce2c24270f13a414a43b90 (
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
29
30
|
#!/bin/sh
if [ ! -e /etc/xml/catalog ]
then
echo "/etc/xml/catalog n'existe pas! Veuillez installer docbook-xml et exécuter à nouveau le script post-install!"
exit 1
fi
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.76.1
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
|