Gentoo Archives: gentoo-dev

From: splite-gentoo@××××××××××××××××.edu
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] portage prize winners
Date: Thu, 03 Jun 2004 15:44:53
Message-Id: 20040603154450.GB29244@sigint.cs.purdue.edu
In Reply to: Re: [gentoo-dev] portage prize winners by Aron Griffis
1 On Thu, Jun 03, 2004 at 10:42:51AM -0400, Aron Griffis wrote:
2 > splite-gentoo@××××××××××××××××.edu wrote: [Thu Jun 03 2004, 09:59:37AM EDT]
3 > > On Wed, Jun 02, 2004 at 09:28:17PM -0400, Aron Griffis wrote:
4 > > > Doing some maintenance on the tree, found some real prize winning
5 > > > brokenness. Here's just a taste...
6 > > >
7 > > > use python && use ppc || myconf="$myconf --with-python"
8 > >
9 > > What's wrong with this? It's just a succinct way of saying:
10 > >
11 > > if use python && ! use ppc; then
12 > > myconf="$myconf --with-python"
13 > > fi
14 >
15 > I'm glad you asked! It's actually a succinct way of saying:
16 >
17 > if ! use python || ! use ppc; then
18 > myconf="$myconf --with-python"
19 > fi
20 >
21 > Try these on the bash command-line:
22 >
23 > true && false || echo borken
24 > false && true || echo borken
25 >
26 > If you're still confused by this, or think I'm wrong, let me know and
27
28 Nope, you're right. That's what I get for pre-coffee posting. This would
29 work:
30
31 use python && { use ppc || myconf="$myconf --with-python"; }
32
33 --
34 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] portage prize winners Aron Griffis <agriffis@g.o>