diff options
author | Peter Volkov <pva@gentoo.org> | 2009-02-03 09:05:27 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2009-02-03 09:05:27 +0000 |
commit | 4c2ba35c4d243d9494eb04dd27d5c9c2cbb71fe8 (patch) | |
tree | de70ee8bd4adc9d909e782117664ccb04e29f3d0 /eclass | |
parent | removed old versions (diff) | |
download | gentoo-2-4c2ba35c4d243d9494eb04dd27d5c9c2cbb71fe8.tar.gz gentoo-2-4c2ba35c4d243d9494eb04dd27d5c9c2cbb71fe8.tar.bz2 gentoo-2-4c2ba35c4d243d9494eb04dd27d5c9c2cbb71fe8.zip |
do dodoc only if file exists
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/enlightenment.eclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/enlightenment.eclass b/eclass/enlightenment.eclass index a56e868f6456..04b2ad833dd5 100644 --- a/eclass/enlightenment.eclass +++ b/eclass/enlightenment.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.78 2008/12/08 11:55:31 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.79 2009/02/03 09:05:27 pva Exp $ # # Author: vapier@gentoo.org @@ -171,7 +171,9 @@ enlightenment_src_compile() { enlightenment_src_install() { emake install DESTDIR="${D}" || enlightenment_die find "${D}" '(' -name CVS -o -name .svn -o -name .git ')' -type d -exec rm -rf '{}' \; 2>/dev/null - dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS} + for d in AUTHORS ChangeLog NEWS README TODO ${EDOCS}; do + [[ -f ${d} ]] && dodoc ${d} + done use doc && [[ -d doc ]] && dohtml -r doc/* } |