Gentoo Archives: gentoo-dev

From: Nirbheek Chauhan <nirbheek.chauhan@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: bzr.eclass
Date: Thu, 19 Feb 2009 09:42:22
Message-Id: 8b4c83ad0902190142t5fe724ib8dfb494767f39ec@mail.gmail.com
In Reply to: [gentoo-dev] Re: bzr.eclass by Ulrich Mueller
1 On Thu, Feb 19, 2009 at 2:56 PM, Ulrich Mueller <ulm@g.o> wrote:
2 > -DEPEND=">=dev-util/bzr-1.5
3 > - dev-util/diffstat"
4 > +DEPEND=">=dev-util/bzr-1.5"
5 >
6 > - ${EBZR_DIFF_CMD} | diffstat
7 > + [ -x /usr/bin/diffstat ] && ${EBZR_DIFF_CMD} | /usr/bin/diffstat
8 >
9
10 Isn't this better?
11
12 type diffstat &>/dev/null && {EBZR_DIFF_CMD} | diffstat
13
14 It's independent of where diffstat is (in PATH or otherwise)
15
16 --
17 ~Nirbheek Chauhan

Replies

Subject Author
Re: [gentoo-dev] Re: bzr.eclass "Petteri Räty" <betelgeuse@g.o>