summaryrefslogtreecommitdiff
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
commiteac389059fe988b737cee0d040d0e7f72648287c (patch)
treeafbf9d9708ccdefe02b8e30a78e747181b6236fb /eclass/font.eclass
parentUSE flags for PHP5-related ebuilds (diff)
downloadhistorical-eac389059fe988b737cee0d040d0e7f72648287c.tar.gz
historical-eac389059fe988b737cee0d040d0e7f72648287c.tar.bz2
historical-eac389059fe988b737cee0d040d0e7f72648287c.zip
Install ${DOCS} only when target file is found
Diffstat (limited to 'eclass/font.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