| 1 | #!/bin/sh
|
|---|
| 2 | VERSION=1.69.1
|
|---|
| 3 | if [ -d docbook-xsl-${VERSION} ]; then
|
|---|
| 4 | rm -rf docbook-xsl-${VERSION};
|
|---|
| 5 | fi;
|
|---|
| 6 |
|
|---|
| 7 | tar -xjvf docbook-xsl-${VERSION}.tar.bz2
|
|---|
| 8 |
|
|---|
| 9 | cd docbook-xsl-${VERSION} &&
|
|---|
| 10 | install -v -d -m755 /usr/share/xml/docbook/xsl-stylesheets-${VERSION} &&
|
|---|
| 11 | install -v -d -m755 /etc/xml &&
|
|---|
| 12 | chown -R root:root . &&
|
|---|
| 13 | cp -v -af VERSION common eclipse extensions fo html htmlhelp images \
|
|---|
| 14 | javahelp lib manpages params profiling slides template website xhtml \
|
|---|
| 15 | /usr/share/xml/docbook/xsl-stylesheets-${VERSION} &&
|
|---|
| 16 | mkdir -p /etc/xml
|
|---|
| 17 | if [ ! -f /etc/xml/catalog ]; then \
|
|---|
| 18 | xmlcatalog --noout --create /etc/xml/catalog; \
|
|---|
| 19 | fi;
|
|---|
| 20 | xmlcatalog --noout --add "rewriteSystem" \
|
|---|
| 21 | "http://docbook.sourceforge.net/release/xsl/${VERSION}" \
|
|---|
| 22 | "/usr/share/xml/docbook/xsl-stylesheets-${VERSION}" \
|
|---|
| 23 | /etc/xml/catalog &&
|
|---|
| 24 | xmlcatalog --noout --add "rewriteURI" \
|
|---|
| 25 | "http://docbook.sourceforge.net/release/xsl/${VERSION}" \
|
|---|
| 26 | "/usr/share/xml/docbook/xsl-stylesheets-${VERSION}" \
|
|---|
| 27 | /etc/xml/catalog &&
|
|---|
| 28 | xmlcatalog --noout --add "rewriteSystem" \
|
|---|
| 29 | "http://docbook.sourceforge.net/release/xsl/current" \
|
|---|
| 30 | "/usr/share/xml/docbook/xsl-stylesheets-${VERSION}" \
|
|---|
| 31 | /etc/xml/catalog &&
|
|---|
| 32 | xmlcatalog --noout --add "rewriteURI" \
|
|---|
| 33 | "http://docbook.sourceforge.net/release/xsl/current" \
|
|---|
| 34 | "/usr/share/xml/docbook/xsl-stylesheets-${VERSION}" \
|
|---|
| 35 | /etc/xml/catalog &&
|
|---|
| 36 | xmlcatalog --noout --add "delegateSystem" \
|
|---|
| 37 | "http://docbook.sourceforge.net/release/xsl/" \
|
|---|
| 38 | "file:///etc/xml/docbook" \
|
|---|
| 39 | /etc/xml/catalog &&
|
|---|
| 40 | xmlcatalog --noout --add "delegateURI" \
|
|---|
| 41 | "http://docbook.sourceforge.net/release/xsl/" \
|
|---|
| 42 | "file:///etc/xml/docbook" \
|
|---|
| 43 | /etc/xml/catalog && \
|
|---|
| 44 | cd /usr/share/xml/docbook && ln -sv xsl-stylesheets-${VERSION} \
|
|---|
| 45 | xsl-stylesheets-current
|
|---|