1 |
maillog: 29/04/2004-22:27:22(-0400): Brett I. Holcomb types |
2 |
> For the sake of one who is doing ebuilds - why is the first form |
3 |
> preferred? I'm curious. I'm working on revising an ebuild now that has |
4 |
> the bad form. |
5 |
|
6 |
Related to the question: I really hate it when ebuild start printing out use |
7 |
flags here and there, because of the |
8 |
|
9 |
if use foo; then... |
10 |
use foo && ... |
11 |
|
12 |
syntax. I guess [ "`use foo`" ] is at least cleaner in respect to output. It |
13 |
would be great if "use" did not print anything, or if there was an alternate. |
14 |
Right now, one would have to add ">/dev/null" after "use", if they want to keep |
15 |
the output clean. Is the reason why using the output of "use foo" is not |
16 |
preferred, because "use" will soon become silent? |
17 |
|
18 |
> Thanks. |
19 |
> |
20 |
> On Thu, 29 Apr 2004, Mike Frysinger wrote: |
21 |
> |
22 |
> > On Thursday 29 April 2004 03:33 pm, Michael Sterrett -Mr. Bones.- wrote: |
23 |
> > > On Thu, 29 Apr 2004, Lars Strojny wrote: |
24 |
> > > > On Thu, 29 Apr 2004 18:20:48 +0100 |
25 |
> > > > Tom Wesley <tom.wesley@××××××××.com> wrote: |
26 |
> > > > > You can |
27 |
> > > > > |
28 |
> > > > > if use nntp; then |
29 |
> > > > > epatch ${DISTDIR}/${nntp_patch} |
30 |
> > > > > fi |
31 |
> > > > |
32 |
> > > > I think |
33 |
> > > > if [ "`use nntp`" ] ; then |
34 |
> > > > is more elegant ;) |
35 |
> > > |
36 |
> > > Between the two, the first example is preferred. |
37 |
> > |
38 |
> > and by prefered he means 'do not use the following syntax anymore in ebuilds': |
39 |
> > [ `use nntp` ] |
40 |
> > [ "`use nntp`" ] |
41 |
> > [ -z "`use nntp`" ] |
42 |
> > [ -n "`use nntp`" ] |
43 |
|
44 |
-- |
45 |
\ Georgi Georgiev \ To love is good, love being difficult. \ |
46 |
/ chutz@×××.net / / |
47 |
\ +81(90)6266-1163 \ \ |
48 |
|
49 |
-- |
50 |
gentoo-dev@g.o mailing list |