summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-01-14 14:41:10 +0000
committerMichał Górny <mgorny@gentoo.org>2012-01-14 14:41:10 +0000
commit157bddf7b15d9bd1eaa3a627093202c7085f4cea (patch)
tree7fbeb1a15e2b846b34e1e30dc02af164aa4c9c10 /eclass/autotools-utils.eclass
parentVersion bump (diff)
downloadhistorical-157bddf7b15d9bd1eaa3a627093202c7085f4cea.tar.gz
historical-157bddf7b15d9bd1eaa3a627093202c7085f4cea.tar.bz2
historical-157bddf7b15d9bd1eaa3a627093202c7085f4cea.zip
Support installing default docs, similarly to EAPI4; wrt bug #397659.
Diffstat (limited to 'eclass/autotools-utils.eclass')
-rw-r--r--eclass/autotools-utils.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
index bf009a3c4635..9611e54573ce 100644
--- a/eclass/autotools-utils.eclass
+++ b/eclass/autotools-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.33 2012/01/09 10:16:25 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.34 2012/01/14 14:41:10 mgorny Exp $
# @ECLASS: autotools-utils.eclass
# @MAINTAINER:
@@ -428,6 +428,15 @@ autotools-utils_src_install() {
# XXX: support installing them from builddir as well?
if [[ ${DOCS} ]]; then
dodoc "${DOCS[@]}" || die "dodoc failed"
+ else
+ local f
+ # same list as in PMS
+ for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \
+ THANKS BUGS FAQ CREDITS CHANGELOG; do
+ if [[ -s ${f} ]]; then
+ dodoc "${f}" || die "(default) dodoc ${f} failed"
+ fi
+ done
fi
if [[ ${HTML_DOCS} ]]; then
dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"