diff options
author | 2007-06-24 06:15:21 +0000 | |
---|---|---|
committer | 2007-06-24 06:15:21 +0000 | |
commit | b12e7bbd5c1b692e4632082bebc3f0ca0614f447 (patch) | |
tree | 52f05c8455650954a767ce4ae8d736d892047900 /eclass/font.eclass | |
parent | Stable on mips, per #175465. (diff) | |
download | historical-b12e7bbd5c1b692e4632082bebc3f0ca0614f447.tar.gz historical-b12e7bbd5c1b692e4632082bebc3f0ca0614f447.tar.bz2 historical-b12e7bbd5c1b692e4632082bebc3f0ca0614f447.zip |
Check for existence of common docs before attempting to install them. (Johannes Weiner, Bug #148804)
Diffstat (limited to 'eclass/font.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() { |