summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-06-27 18:42:40 +0000
committerMamoru Komachi <usata@gentoo.org>2004-06-27 18:42:40 +0000
commit915a4f6051247e391249cf28373e7ee9c4b2b97f (patch)
treeb248a6b49dba347b5103db0640445f4d5530cd0a /eclass
parentUSE flags for PHP5-related ebuilds (diff)
downloadgentoo-2-915a4f6051247e391249cf28373e7ee9c4b2b97f.tar.gz
gentoo-2-915a4f6051247e391249cf28373e7ee9c4b2b97f.tar.bz2
gentoo-2-915a4f6051247e391249cf28373e7ee9c4b2b97f.zip
Install ${DOCS} only when target file is found
Diffstat (limited to 'eclass')
-rw-r--r--eclass/font.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index 58b18a3b69db..7f461cb68948 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.5 2004/06/25 00:39:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.6 2004/06/27 18:42:40 usata Exp $
# Author: foser <foser@gentoo.org>
@@ -83,7 +83,9 @@ font_src_install() {
cd ${S}
# try to install some common docs
DOCS="${DOCS} COPYRIGHT README NEWS"
- dodoc ${DOCS}
+ for f in ${DOCS}; do
+ [[ -e ${f} ]] && dodoc ${f}
+ done
}
EXPORT_FUNCTIONS src_install