X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Fsgml-dtd3;h=cb92c333b2823addbc06251ab93606e31534bf40;hb=1b6490195147ee6d1098cf255240d60f60c40108;hp=7a5c2a6f9ee31b2e66b3974abb29df97b1537241;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/sgml-dtd3 b/stage3/pkg/sgml-dtd3 index 7a5c2a6..cb92c33 100644 --- a/stage3/pkg/sgml-dtd3 +++ b/stage3/pkg/sgml-dtd3 @@ -1,36 +1,27 @@ -#!/bin/sh -set -o errexit - -# First argument of this script is the package name - -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list - -# Applying patches (if any) -apply_patches ${1} - -cd ${LFS_TMP}/${1} -sed -i -e '/ISO 8879/d' \ - -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \ - docbook.cat -install -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER} -chown -R root:root . -install docbook.cat /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog -cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER} -install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \ - /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog -install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \ - /etc/sgml/sgml-docbook.cat - -# Using only the most current 3.x version of sgml-dtd requires the following: -cat >> /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog << "EOF" +#!/bin/bash + +hvbuild() +{ + sed -i -e '/ISO 8879/d' \ + -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \ + docbook.cat + install -v -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER} + chown -R root:root . + install -v docbook.cat \ + /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog + cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER} + install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \ + /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog + install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \ + /etc/sgml/sgml-docbook.cat + + # Using only the most current 3.x version of sgml-dtd requires the + # following: + cat >> /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog << "EOF" -- Begin Single Major Version catalog changes -- PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd" -- End Single Major Version catalog changes -- EOF - -exit $? +}