/[gentoo-x86]/eclass/autotools-utils.eclass
Gentoo

Diff of /eclass/autotools-utils.eclass

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

Revision 1.60 Revision 1.61
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.60 2012/12/03 12:05:51 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.61 2012/12/14 08:40:18 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>
155# @ECLASS-VARIABLE: DOCS 155# @ECLASS-VARIABLE: DOCS
156# @DEFAULT_UNSET 156# @DEFAULT_UNSET
157# @DESCRIPTION: 157# @DESCRIPTION:
158# Array containing documents passed to dodoc command. 158# Array containing documents passed to dodoc command.
159# 159#
160# In EAPIs 4+, can list directories as well.
161#
160# Example: 162# Example:
161# @CODE 163# @CODE
162# DOCS=( NEWS README ) 164# DOCS=( NEWS README )
163# @CODE 165# @CODE
164 166
483 fi 485 fi
484 fi 486 fi
485 487
486 # XXX: support installing them from builddir as well? 488 # XXX: support installing them from builddir as well?
487 if [[ ${DOCS} ]]; then 489 if [[ ${DOCS} ]]; then
490 if [[ ${EAPI} == [23] ]]; then
488 dodoc "${DOCS[@]}" || die "dodoc failed" 491 dodoc "${DOCS[@]}" || die
492 else
493 # dies by itself
494 dodoc -r "${DOCS[@]}"
495 fi
489 else 496 else
490 local f 497 local f
491 # same list as in PMS 498 # same list as in PMS
492 for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \ 499 for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \
493 THANKS BUGS FAQ CREDITS CHANGELOG; do 500 THANKS BUGS FAQ CREDITS CHANGELOG; do

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

  ViewVC Help
Powered by ViewVC 1.1.20