docbook-xsl.kur-kos 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version=1.79.1
  2. if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &&
  3. if [ ! -f /etc/xml/catalog ]; then
  4. xmlcatalog --noout --create /etc/xml/catalog
  5. fi
  6. xmlcatalog --noout --add "rewriteSystem" \
  7. "http://docbook.sourceforge.net/release/xsl/$version" \
  8. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  9. /etc/xml/catalog
  10. xmlcatalog --noout --add "rewriteURI" \
  11. "http://docbook.sourceforge.net/release/xsl/$version" \
  12. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  13. /etc/xml/catalog
  14. xmlcatalog --noout --add "rewriteSystem" \
  15. "http://docbook.sourceforge.net/release/xsl/current" \
  16. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  17. /etc/xml/catalog
  18. xmlcatalog --noout --add "rewriteURI" \
  19. "http://docbook.sourceforge.net/release/xsl/current" \
  20. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  21. /etc/xml/catalog
  22. for version in 1.67.2
  23. do
  24. xmlcatalog --noout --add "rewriteSystem" \
  25. "http://docbook.sourceforge.net/release/xsl/$version" \
  26. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  27. /etc/xml/catalog
  28. xmlcatalog --noout --add "rewriteURI" \
  29. "http://docbook.sourceforge.net/release/xsl/$version" \
  30. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  31. /etc/xml/catalog
  32. xmlcatalog --noout --add "rewriteSystem" \
  33. "http://docbook.sourceforge.net/release/xsl/$version" \
  34. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  35. /etc/xml/catalog
  36. xmlcatalog --noout --add "rewriteURI" \
  37. "http://docbook.sourceforge.net/release/xsl/$version" \
  38. "/usr/share/xml/docbook/xsl-stylesheets-$version" \
  39. /etc/xml/catalog
  40. done