diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2007-06-24 06:15:21 +0000 |
---|---|---|
committer | Ryan Hill <dirtyepic@gentoo.org> | 2007-06-24 06:15:21 +0000 |
commit | cdba03d7455e0e22a830ab618b69bc433879698f (patch) | |
tree | 3f7e84fa09eadfa8d4498830a7f36a8cbfe0e21d /eclass | |
parent | Stable on mips, per #175465. (diff) | |
download | gentoo-2-cdba03d7455e0e22a830ab618b69bc433879698f.tar.gz gentoo-2-cdba03d7455e0e22a830ab618b69bc433879698f.tar.bz2 gentoo-2-cdba03d7455e0e22a830ab618b69bc433879698f.zip |
Check for existence of common docs before attempting to install them. (Johannes Weiner, Bug #148804)
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/font.eclass | 10 |
1 files changed, 6 insertions, 4 deletions
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 <foser@gentoo.org> @@ -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() { |