X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-sgml-dtd4;h=192af58bc403a900fef19da4727128712324673d;hb=0028eaa73ae0c3bd1dbf90c4bd508ae705bc386f;hp=3387993d57e85ade97263719067b41f6eec28f58;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage3/cis-sgml-dtd4 b/stage3/cis-sgml-dtd4 index 3387993..192af58 100755 --- a/stage3/cis-sgml-dtd4 +++ b/stage3/cis-sgml-dtd4 @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name # Reading system configuration informations, functions and package versions. @@ -7,19 +9,19 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -cd ${LFS_TMP}/${1} && +cd ${LFS_TMP}/${1} sed -i -e '/ISO 8879/d' \ - -e '/gml/d' docbook.cat && -install -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER} && -chown -R root:root . && -install docbook.cat /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog && -cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER} && + -e '/gml/d' docbook.cat +install -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER} +chown -R root:root . +install docbook.cat /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog +cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER} install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD4_VER}.cat \ - /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog && + /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD4_VER}.cat \ - /etc/sgml/sgml-docbook.cat && + /etc/sgml/sgml-docbook.cat # Using only the most current 4.x version of sgml-dtd requires the following: cat >> /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog << "EOF" @@ -33,5 +35,4 @@ PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd" -- End Single Major Version catalog changes -- EOF -# Return last error exit $?