diff options
author | Matthew Turk <satai@gentoo.org> | 2002-09-12 07:20:19 +0000 |
---|---|---|
committer | Matthew Turk <satai@gentoo.org> | 2002-09-12 07:20:19 +0000 |
commit | dbf1205104f11920b1447bb4401d807037e0fc11 (patch) | |
tree | 2cf11b268e20ee41a596639e4b028e411b45e677 /app-text/docbook-dsssl-stylesheets | |
parent | added keywords (diff) | |
download | historical-dbf1205104f11920b1447bb4401d807037e0fc11.tar.gz historical-dbf1205104f11920b1447bb4401d807037e0fc11.tar.bz2 historical-dbf1205104f11920b1447bb4401d807037e0fc11.zip |
Added much more robust file checking to several of these; hopefully this will
clear up any outstanding issues with sgml catalogs. This should also fix the
behavior seen in bug 6854.
Diffstat (limited to 'app-text/docbook-dsssl-stylesheets')
-rw-r--r-- | app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild index 8e06ca328c5d..97ec4fc2d10e 100644 --- a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild +++ b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild,v 1.3 2002/08/16 02:42:01 murphy Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild,v 1.4 2002/09/12 07:20:18 satai Exp $ MY_P=${P/-stylesheets/} S=${WORKDIR}/${MY_P} @@ -45,11 +45,17 @@ pkg_postinst() { pkg_prerm() { if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ] then - install-catalog --remove \ - /etc/sgml/dsssl-docbook-stylesheets.cat \ - /usr/share/sgml/docbook/dsssl-stylesheets-${PV}/catalog - install-catalog --remove \ - /etc/sgml/sgml-docbook.cat \ - /etc/sgml/dsssl-docbook-stylesheets.cat + if [ -e /etc/sgml/dsssl-docbook-stylesheets.cat ] + then + install-catalog --remove \ + /etc/sgml/dsssl-docbook-stylesheets.cat \ + /usr/share/sgml/docbook/dsssl-stylesheets-${PV}/catalog + fi + if [ -e /etc/sgml/sgml-docbook.cat ] + then + install-catalog --remove \ + /etc/sgml/sgml-docbook.cat \ + /etc/sgml/dsssl-docbook-stylesheets.cat + fi fi } |