Gentoo Archives: gentoo-dev

From: Don Seiler <rizzo@g.o>
To: "Michael Sterrett -Mr. Bones.-" <msterret@××××.com>
Cc: Lars Strojny <lars@×××××××.net>, gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Apply patch depending on USE flag
Date: Thu, 29 Apr 2004 19:37:00
Message-Id: 20040429193640.GB7605@linguo.lan.seiler.us
In Reply to: [gentoo-dev] Re: Apply patch depending on USE flag by "Michael Sterrett -Mr. Bones.-"
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/