Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Re: [gentoo-commits] gentoo-x86 commit in dev-php5/onphp: ChangeLog onphp-0.10.6.ebuild onphp-0.10.4.ebuild onphp-0.10.3.ebuild
Date: Tue, 16 Oct 2007 07:41:12
Message-Id: 20071016072812.GT23990@supernova
In Reply to: [gentoo-dev] Re: Re: [gentoo-commits] gentoo-x86 commit in dev-php5/onphp: ChangeLog onphp-0.10.6.ebuild onphp-0.10.4.ebuild onphp-0.10.3.ebuild by Steve Long
1 On 08:19 Tue 16 Oct , Steve Long wrote:
2 > stdDocs=(ChangeLog AUTHORS FEATURES THANKS README CodingStyle TODO FAQ)
3 >
4 > stdDoc() {
5 > local d l=()
6 > for d in "${stdDocs[@]}"; do
7 > [[ -f $d ]] && l+=("$d")
8 > done
9 > ((${#l[@]})) && dodoc "${l[@]}"
10 > }
11 >
12 > (assuming [[ $PWD = $S ]] or whichever is the right one for docs.)
13
14 Is it just me, or is this code way more complex than it needs to be? It
15 looks like bashturbation to me. =P
16
17 Thanks,
18 Donnie
19 --
20 gentoo-dev@g.o mailing list

Replies