clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since fdfb73b 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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### docbook-sgml ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=docbook-sgml-${DBK_SGML_VER}-blfs.log
|
---|
| 7 |
|
---|
| 8 | PKGDIR="docbook-${DBK_SGML_VER}"
|
---|
| 9 | if [ -d ${PKGDIR} ]; then rm -rf ${PKGDIR}; fi
|
---|
| 10 | mkdir ${PKGDIR}
|
---|
| 11 | cd ${PKGDIR}
|
---|
| 12 |
|
---|
| 13 | case ${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 | ;;
|
---|
| 25 | esac
|
---|
| 26 |
|
---|
| 27 | install -d /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER} &&
|
---|
| 28 | chown -R root:root . &&
|
---|
| 29 | install docbook.cat \
|
---|
| 30 | /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER}/catalog &&
|
---|
| 31 | cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER} &&
|
---|
| 32 |
|
---|
| 33 | install-catalog --add /etc/sgml/sgml-docbook-dtd-${DBK_SGML_VER}.cat \
|
---|
| 34 | /usr/share/sgml/docbook/sgml-dtd-${DBK_SGML_VER}/catalog &&
|
---|
| 35 | install-catalog --add /etc/sgml/sgml-docbook-dtd-${DBK_SGML_VER}.cat \
|
---|
| 36 | /etc/sgml/sgml-docbook.cat
|
---|
| 37 |
|
---|
| 38 | case ${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 |
|
---|
| 44 | PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
|
---|
| 45 |
|
---|
| 46 | -- End Single Major Version catalog changes --
|
---|
| 47 | EOF
|
---|
| 48 | ;;
|
---|
| 49 | 4.3 )
|
---|
| 50 | cat >> /usr/share/sgml/docbook/sgml-dtd-4.3/catalog << "EOF"
|
---|
| 51 | -- Begin Single Major Version catalog changes --
|
---|
| 52 |
|
---|
| 53 | PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
|
---|
| 54 | PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
|
---|
| 55 | PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
|
---|
| 56 |
|
---|
| 57 | -- End Single Major Version catalog changes --
|
---|
| 58 | EOF
|
---|
| 59 | ;;
|
---|
| 60 | esac
|
---|
Note:
See
TracBrowser
for help on using the repository browser.