1 |
commit: ec5be66c90dddba6c4eb8b8e091e4c779bb7c06b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 6 15:13:09 2012 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 6 22:06:23 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=ec5be66c |
7 |
|
8 |
Support installing default docs, similarly to EAPI4. |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=397659 |
11 |
|
12 |
--- |
13 |
eclass/autotools-utils.eclass | 9 +++++++++ |
14 |
1 files changed, 9 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass |
17 |
index f2daa55..e5ce908 100644 |
18 |
--- a/eclass/autotools-utils.eclass |
19 |
+++ b/eclass/autotools-utils.eclass |
20 |
@@ -428,6 +428,15 @@ autotools-utils_src_install() { |
21 |
# XXX: support installing them from builddir as well? |
22 |
if [[ ${DOCS} ]]; then |
23 |
dodoc "${DOCS[@]}" || die "dodoc failed" |
24 |
+ else |
25 |
+ local f |
26 |
+ # same list as in PMS |
27 |
+ for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \ |
28 |
+ THANKS BUGS FAQ CREDITS CHANGELOG; do |
29 |
+ if [[ -s ${f} ]]; then |
30 |
+ dodoc "${f}" || die "(default) dodoc ${f} failed" |
31 |
+ fi |
32 |
+ done |
33 |
fi |
34 |
if [[ ${HTML_DOCS} ]]; then |
35 |
dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed" |