#!/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 # Remove the old catalog items prior to upgrading... # First test for presence of 'install-catalog' program install-catalog -v 1> /dev/null 2>&1 if [ $? -eq 0 ]; then # The following commands may fail if this is the first time # that this package is installed. So we do not check the return value. install-catalog --remove /etc/sgml/sgml-ent.cat \ /usr/share/sgml/sgml-iso-entities-8879.1986/catalog install-catalog --remove /etc/sgml/sgml-docbook.cat \ /etc/sgml/sgml-ent.cat fi # Applying patches (if any) apply_patches ${1} cd ${LFS_TMP}/${1} # Autotools used with this package are very old, so we regenerate the autotools files. aclocal automake -acf autoconf ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man make make install install-catalog --add /etc/sgml/sgml-ent.cat \ /usr/share/sgml/sgml-iso-entities-8879.1986/catalog install-catalog --add /etc/sgml/sgml-docbook.cat \ /etc/sgml/sgml-ent.cat exit $?