1 |
On Thu, Apr 29, 2004 at 03:33:31PM -0400, Michael Sterrett -Mr. Bones.- wrote: |
2 |
> > > if use nntp; then |
3 |
> > > epatch ${DISTDIR}/${nntp_patch} |
4 |
> > > fi |
5 |
> > |
6 |
> > I think |
7 |
> > if [ "`use nntp`" ] ; then |
8 |
> > is more elegant ;) |
9 |
> |
10 |
> Between the two, the first example is preferred. |
11 |
|
12 |
Except that you may want ${FILESDIR} and not ${DISTDIR}. I still prefer |
13 |
the 'use flag && epatch blah' syntax. |
14 |
|
15 |
-- |
16 |
Don Seiler rizzo@g.o |
17 |
Gentoo Linux Developer net-im Herd |
18 |
http://dev.gentoo.org/~rizzo/ |