/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.426 Revision 1.427
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/eutils.eclass,v 1.426 2013/09/13 11:22:52 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.427 2013/09/14 19:00:10 mgorny Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
1646} 1646}
1647 1647
1648einstalldocs() { 1648einstalldocs() {
1649 debug-print-function ${FUNCNAME} "${@}" 1649 debug-print-function ${FUNCNAME} "${@}"
1650 1650
1651 local dodoc_opts=-r
1652 has ${EAPI} 0 1 2 3 && dodoc_opts=
1653
1651 if ! declare -p DOCS &>/dev/null ; then 1654 if ! declare -p DOCS &>/dev/null ; then
1652 local d 1655 local d
1653 for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \ 1656 for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
1654 THANKS BUGS FAQ CREDITS CHANGELOG ; do 1657 THANKS BUGS FAQ CREDITS CHANGELOG ; do
1655 [[ -s ${d} ]] && dodoc "${d}" 1658 if [[ -s ${d} ]] ; then
1659 dodoc "${d}" || die
1660 fi
1656 done 1661 done
1657 elif [[ $(declare -p DOCS) == "declare -a"* ]] ; then 1662 elif [[ $(declare -p DOCS) == "declare -a"* ]] ; then
1658 [[ ${DOCS[@]} ]] && dodoc -r "${DOCS[@]}" 1663 if [[ ${DOCS[@]} ]] ; then
1664 dodoc ${dodoc_opts} "${DOCS[@]}" || die
1665 fi
1659 else 1666 else
1660 [[ ${DOCS} ]] && dodoc -r ${DOCS} 1667 if [[ ${DOCS} ]] ; then
1668 dodoc ${dodoc_opts} ${DOCS} || die
1669 fi
1661 fi 1670 fi
1662 1671
1663 if [[ $(declare -p HTML_DOCS 2>/dev/null) == "declare -a"* ]] ; then 1672 if [[ $(declare -p HTML_DOCS 2>/dev/null) == "declare -a"* ]] ; then
1664 [[ ${HTML_DOCS[@]} ]] && dohtml -r "${HTML_DOCS[@]}" 1673 if [[ ${HTML_DOCS[@]} ]] ; then
1674 dohtml -r "${HTML_DOCS[@]}" || die
1675 fi
1665 else 1676 else
1666 [[ ${HTML_DOCS} ]] && dohtml -r ${HTML_DOCS} 1677 if [[ ${HTML_DOCS} ]] ; then
1678 dohtml -r ${HTML_DOCS} || die
1679 fi
1667 fi 1680 fi
1668 1681
1669 return 0 1682 return 0
1670} 1683}
1671 1684

Legend:
Removed from v.1.426  
changed lines
  Added in v.1.427

  ViewVC Help
Powered by ViewVC 1.1.20