52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
|
version=1.79.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
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteSystem" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/$version" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteURI" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/$version" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteSystem" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteURI" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
for version in 1.67.2
|
||
|
do
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteSystem" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/$version" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteURI" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/$version" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteSystem" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/$version" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
xmlcatalog --noout --add "rewriteURI" \
|
||
|
"http://docbook.sourceforge.net/release/xsl/$version" \
|
||
|
"/usr/share/xml/docbook/xsl-stylesheets-$version" \
|
||
|
etc/xml/catalog
|
||
|
|
||
|
done
|