diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-06-27 18:42:40 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-06-27 18:42:40 +0000 |
commit | 915a4f6051247e391249cf28373e7ee9c4b2b97f (patch) | |
tree | b248a6b49dba347b5103db0640445f4d5530cd0a /eclass | |
parent | USE flags for PHP5-related ebuilds (diff) | |
download | gentoo-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.eclass | 6 |
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 |