From cdba03d7455e0e22a830ab618b69bc433879698f Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Sun, 24 Jun 2007 06:15:21 +0000 Subject: Check for existence of common docs before attempting to install them. (Johannes Weiner, Bug #148804) --- eclass/font.eclass | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'eclass') diff --git a/eclass/font.eclass b/eclass/font.eclass index 8d39a86efbbb..95e6489d4b1f 100644 --- a/eclass/font.eclass +++ b/eclass/font.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.22 2007/03/26 20:04:34 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.23 2007/06/24 06:15:21 dirtyepic Exp $ # Author: foser @@ -66,7 +66,7 @@ font_xft_config() { font_src_install() { - local suffix + local suffix commondoc cd "${FONT_S}" @@ -82,10 +82,12 @@ font_src_install() { font_xft_config cd "${S}" - # try to install some common docs - DOCS="${DOCS} COPYRIGHT README NEWS" dodoc ${DOCS} 2> /dev/null + # install common docs + for commondoc in COPYRIGHT README NEWS AUTHORS BUGS ChangeLog; do + [ -s ${commondoc} ] && dodoc ${commondoc} + done } font_pkg_setup() { -- cgit v1.2.3-65-gdbad