From 378ea5392f01b12087baa957cf42a1192a52a293 Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Sat, 17 Jun 2006 20:35:02 +0000 Subject: [PATCH] Only exec dodoc on existing files. Prevents warnings, see bug #137100, thanks to Jon Hood for reporting. --- eclass/vdr-plugin.eclass | 8 +++++--- 1 file 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 @@ -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 -- 2.26.2