| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.33 2012/01/09 10:16:25 jlec Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.34 2012/01/14 14:41:10 mgorny Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: autotools-utils.eclass |
5 | # @ECLASS: autotools-utils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Maciej Mrozowski <reavertm@gentoo.org> |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
| 8 | # Michał Górny <mgorny@gentoo.org> |
8 | # Michał Górny <mgorny@gentoo.org> |
| … | |
… | |
| 426 | popd > /dev/null |
426 | popd > /dev/null |
| 427 | |
427 | |
| 428 | # XXX: support installing them from builddir as well? |
428 | # XXX: support installing them from builddir as well? |
| 429 | if [[ ${DOCS} ]]; then |
429 | if [[ ${DOCS} ]]; then |
| 430 | dodoc "${DOCS[@]}" || die "dodoc failed" |
430 | dodoc "${DOCS[@]}" || die "dodoc failed" |
|
|
431 | else |
|
|
432 | local f |
|
|
433 | # same list as in PMS |
|
|
434 | for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \ |
|
|
435 | THANKS BUGS FAQ CREDITS CHANGELOG; do |
|
|
436 | if [[ -s ${f} ]]; then |
|
|
437 | dodoc "${f}" || die "(default) dodoc ${f} failed" |
|
|
438 | fi |
|
|
439 | done |
| 431 | fi |
440 | fi |
| 432 | if [[ ${HTML_DOCS} ]]; then |
441 | if [[ ${HTML_DOCS} ]]; then |
| 433 | dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed" |
442 | dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed" |
| 434 | fi |
443 | fi |
| 435 | |
444 | |