summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-06-17 20:35:02 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-06-17 20:35:02 +0000
commit758f954bf203974445386e9c14a881809ed8111c (patch)
tree3b3a1210ec017e88a554f8298645fe7c4b356a89 /eclass/vdr-plugin.eclass
parentmake sure destination dir exists if installing into empty $ROOT as pointed ou... (diff)
downloadgentoo-2-758f954bf203974445386e9c14a881809ed8111c.tar.gz
gentoo-2-758f954bf203974445386e9c14a881809ed8111c.tar.bz2
gentoo-2-758f954bf203974445386e9c14a881809ed8111c.zip
Only exec dodoc on existing files. Prevents warnings, see bug #137100, thanks to Jon Hood <squinky86@gentoo.org> for reporting.
Diffstat (limited to 'eclass/vdr-plugin.eclass')
-rw-r--r--eclass/vdr-plugin.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass
index e990e44729ce..c820927070c5 100644
--- a/eclass/vdr-plugin.eclass
+++ b/eclass/vdr-plugin.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.22 2006/06/17 14:51:32 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.23 2006/06/17 20:35:02 zzam Exp $
#
# Author:
# Matthias Schwarzott <zzam@gentoo.org>
@@ -218,8 +218,10 @@ vdr-plugin_src_install() {
insinto "${VDR_PLUGIN_DIR}"
doins libvdr-*.so.*
- dodoc README* HISTORY CHANGELOG
-
+ local docfile
+ for docfile in README* HISTORY CHANGELOG; do
+ [[ -f ${docfile} ]] && dodoc ${docfile}
+ done
# if VDR_CONFD_FILE is empty and ${FILESDIR}/confd exists take it
[[ -z ${VDR_CONFD_FILE} ]] && [[ -e ${FILESDIR}/confd ]] && VDR_CONFD_FILE=${FILESDIR}/confd