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

Diff of /eclass/eutils.eclass

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

Revision 1.425 Revision 1.426
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.425 2013/09/13 00:51:46 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.426 2013/09/13 11:22:52 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
1643 if [[ ${queue[@]} ]]; then 1643 if [[ ${queue[@]} ]]; then
1644 rm -f "${queue[@]}" 1644 rm -f "${queue[@]}"
1645 fi 1645 fi
1646} 1646}
1647 1647
1648einstalldocs() {
1649 debug-print-function ${FUNCNAME} "${@}"
1650
1651 if ! declare -p DOCS &>/dev/null ; then
1652 local d
1653 for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
1654 THANKS BUGS FAQ CREDITS CHANGELOG ; do
1655 [[ -s ${d} ]] && dodoc "${d}"
1656 done
1657 elif [[ $(declare -p DOCS) == "declare -a"* ]] ; then
1658 [[ ${DOCS[@]} ]] && dodoc -r "${DOCS[@]}"
1659 else
1660 [[ ${DOCS} ]] && dodoc -r ${DOCS}
1661 fi
1662
1663 if [[ $(declare -p HTML_DOCS 2>/dev/null) == "declare -a"* ]] ; then
1664 [[ ${HTML_DOCS[@]} ]] && dohtml -r "${HTML_DOCS[@]}"
1665 else
1666 [[ ${HTML_DOCS} ]] && dohtml -r ${HTML_DOCS}
1667 fi
1668
1669 return 0
1670}
1671
1648check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; } 1672check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; }
1649 1673
1650fi 1674fi

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

  ViewVC Help
Powered by ViewVC 1.1.20