diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-01-14 18:14:39 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-01-14 18:14:39 +0000 |
commit | c2459caca348f486120fb9f3eaa783131ea55659 (patch) | |
tree | df57d638b9f03e54087aafa72cc8e25f9fb66bd8 /eclass/autotools-utils.eclass | |
parent | Version bump, drop old (diff) | |
download | gentoo-2-c2459caca348f486120fb9f3eaa783131ea55659.tar.gz gentoo-2-c2459caca348f486120fb9f3eaa783131ea55659.tar.bz2 gentoo-2-c2459caca348f486120fb9f3eaa783131ea55659.zip |
Replace the docdir-directory error with a warning.
Diffstat (limited to 'eclass/autotools-utils.eclass')
-rw-r--r-- | eclass/autotools-utils.eclass | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass index 3e1b539c0595..2239b55d0f32 100644 --- a/eclass/autotools-utils.eclass +++ b/eclass/autotools-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.38 2012/01/14 15:18:05 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.39 2012/01/14 18:14:39 mgorny Exp $ # @ECLASS: autotools-utils.eclass # @MAINTAINER: @@ -447,18 +447,16 @@ autotools-utils_src_install() { # Move docs installed by autotools (in EAPI < 4). if [[ ${EAPI} == [23] && -d ${D}${EPREFIX}/usr/share/doc/${PF} ]]; then - mkdir "${T}"/temp-docdir - mv "${D}${EPREFIX}"/usr/share/doc/${PF}/* "${T}"/temp-docdir/ \ - || die "moving docs to tempdir failed" - - local f - for f in "${T}"/temp-docdir/*; do - [[ -d ${f} ]] \ - && die "directories in docdir require at least EAPI 4" - done - - dodoc "${T}"/temp-docdir/* || die "docdir dodoc failed" - rm -r "${T}"/temp-docdir || die + if [[ $(find "${D}${EPREFIX}"/usr/share/doc/${PF}/* -type d) ]]; then + eqawarn "autotools-utils: directories in docdir require at least EAPI 4" + else + mkdir "${T}"/temp-docdir + mv "${D}${EPREFIX}"/usr/share/doc/${PF}/* "${T}"/temp-docdir/ \ + || die "moving docs to tempdir failed" + + dodoc "${T}"/temp-docdir/* || die "docdir dodoc failed" + rm -r "${T}"/temp-docdir || die + fi fi # XXX: support installing them from builddir as well? |