Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Default src_install for EAPI-2 or following EAPI
Date: Sun, 05 Oct 2008 17:03:26
Message-Id: 18664.62297.765717.397123@a1ihome1.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] Default src_install for EAPI-2 or following EAPI by Robert Buchholz
1 >>>>> On Sun, 5 Oct 2008, Robert Buchholz wrote:
2
3 >> So if the ebuild includes non-existing files in DOCS, then why would
4 >> you want to suppress the warnings?
5
6 > I don't. My point was that the default action on an empty DOCS
7 > variable is to "dodoc AUTHORS ChangeLog NEWS README", and this
8 > should not emit warnings, because it is merely a heuristic.
9
10 > To be clearer:
11 > else
12 > - # No die here because we don't know if any of these exist
13 > - dodoc AUTHORS ChangeLog NEWS README
14 > + for x in AUTHORS ChangeLog NEWS README; do
15 > + if [ -e ${x} ]; then
16 > + dodoc ${x} || die "dodoc ${x} failed"
17 > + fi
18 > + done
19 > fi
20
21 I agree. You (and Petteri) are absolutely right.
22
23 Ulrich