source: scripts/untested/blfs-scripts/blfs-docbook-sgml.sh@ 9b5d6cdc

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9b5d6cdc 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: 1.6 KB
Line 
1#!/bin/bash
2
3### docbook-sgml ###
4
5cd ${SRC}
6LOG=docbook-sgml-${DBK_SGML_VER}-blfs.log
7
8PKGDIR="docbook-${DBK_SGML_VER}"
9if [ -d ${PKGDIR} ]; then rm -rf ${PKGDIR}; fi
10mkdir ${PKGDIR}
11cd ${PKGDIR}
12
13case ${DBK_SGML_VER} in
14 3.1 )
15 unzip ${TARBALLS}/docbk-31.zip || barf
16 sed -i -e '/ISO 8879/d' \
17 -e "s|DTDDECL \"-//OASIS//DTD DocBook V${DBK_SGML_VER}//EN\"|SGMLDECL|g" \
18 docbook.cat
19 ;;
20 4.* )
21 unzip ${TARBALLS}/docbook-${DBK_SGML_VER}.zip || barf
22 sed -i -e '/ISO 8879/d' \
23 -e '/gml/d' docbook.cat
24 ;;
25esac
26
27install -d /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER} &&
28chown -R root:root . &&
29install docbook.cat \
30 /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER}/catalog &&
31cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER} &&
32
33install-catalog --add /etc/sgml/sgml-docbook-dtd-${DBK_SGML_VER}.cat \
34 /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER}/catalog &&
35install-catalog --add /etc/sgml/sgml-docbook-dtd-${DBK_SGML_VER}.cat \
36 /etc/sgml/sgml-docbook.cat
37
38case ${DBK_SGML_VER} in
39 3.1 )
40 #
41 cat >> /usr/share/sgml/docbook/sgml-dtd-3.1/catalog << "EOF"
42-- Begin Single Major Version catalog changes --
43
44PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
45
46 -- End Single Major Version catalog changes --
47EOF
48 ;;
49 4.3 )
50 cat >> /usr/share/sgml/docbook/sgml-dtd-4.3/catalog << "EOF"
51-- Begin Single Major Version catalog changes --
52
53PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
54PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
55PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
56
57 -- End Single Major Version catalog changes --
58EOF
59 ;;
60esac
Note: See TracBrowser for help on using the repository browser.