Only exec dodoc on existing files. Prevents warnings, see bug #137100, thanks to...
authorMatthias Schwarzott <zzam@gentoo.org>
Sat, 17 Jun 2006 20:35:02 +0000 (20:35 +0000)
committerMatthias Schwarzott <zzam@gentoo.org>
Sat, 17 Jun 2006 20:35:02 +0000 (20:35 +0000)
eclass/vdr-plugin.eclass

index e990e44729cee160524f36f40ea6b67467e3fe85..c820927070c553990225aad510ba5ce5c9a4cf4b 100644 (file)
@@ -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