source: scripts/untested/blfs-scripts/blfs-docbook-xsl.sh@ eec901a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since eec901a was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 2.3 KB
Line 
1#!/bin/bash
2
3### docbook-xsl ###
4
5cd ${SRC}
6LOG=docbook-xsl-blfs.log
7
8unpack_tarball docbook-xsl-${DBK_XSL_VER}
9cd ${PKGDIR}
10
11install -d /usr/share/xml/docbook/xsl-stylesheets-${DBK_XSL_VER} &&
12chown -R root:root . &&
13
14cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp \
15 images javahelp lib manpages params profiling template xhtml \
16 /usr/share/xml/docbook/xsl-stylesheets-${DBK_XSL_VER} &&
17install -d /usr/share/doc/xml &&
18cp -af doc/* /usr/share/doc/xml &&
19
20cd /usr/share/xml/docbook/xsl-stylesheets-${DBK_XSL_VER} &&
21sh INSTALL &&
22
23if [ ! -f /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog \
24 --noout --create /etc/xml/catalog; fi &&
25if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
26 /etc/xml/docbook; fi &&
27
28xmlcatalog --noout --add "rewriteSystem" \
29 "http://docbook.sourceforge.net/release/xsl/${DBK_XSL_VER}" \
30 "/usr/share/xml/docbook/xsl-stylesheets-${DBK_XSL_VER}" /etc/xml/catalog &&
31xmlcatalog --noout --add "rewriteURI" \
32 "http://docbook.sourceforge.net/release/xsl/${DBK_XSL_VER}" \
33 "/usr/share/xml/docbook/xsl-stylesheets-${DBK_XSL_VER}" /etc/xml/catalog &&
34xmlcatalog --noout --add "delegateSystem" \
35 "http://docbook.sourceforge.net/release/xsl/" \
36 "file:///etc/xml/docbook" /etc/xml/catalog &&
37xmlcatalog --noout --add "delegateURI" \
38 "http://docbook.sourceforge.net/release/xsl/" \
39 "file:///etc/xml/docbook" /etc/xml/catalog
40
41# Setup shell env for xsl
42if [ ! -d /etc/profile.d ]; then mkdir /etc/profile.d ; fi
43cat > /etc/profile.d/xsl.sh << EOF
44# Set up Environment Variable for XSL Processing
45export XML_CATALOG_FILES="/usr/share/xml/docbook/\
46xsl-stylesheets-${DBK_XSL_VER}/catalog.xml /etc/xml/catalog"
47EOF
48
49# Configure
50# TODO: need to sanely add more versions in here
51VERS="1.61.3 1.65.1 1.66.1 1.67.0 1.67.2"
52VERS=`echo ${VERS} | sed "s@${DBK_XSL_VER}.*@@g"`
53# When building gtk-doc, it searches for release/xsl/current...
54# add this first...
55VERS="current ${VERS}"
56
57for ver in ${VERS} ; do
58 xmlcatalog --noout --add "rewriteSystem" \
59 "http://docbook.sourceforge.net/release/xsl/${ver}" \
60 "/usr/share/xml/docbook/xsl-stylesheets-${DBK_XSL_VER}" \
61 /etc/xml/catalog &&
62 xmlcatalog --noout --add "rewriteURI" \
63 "http://docbook.sourceforge.net/release/xsl/${ver}" \
64 "/usr/share/xml/docbook/xsl-stylesheets-${DBK_XSL_VER}" \
65 /etc/xml/catalog
66done
67
Note: See TracBrowser for help on using the repository browser.