Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: bzr.eclass
Date: Thu, 19 Feb 2009 15:36:46
Message-Id: 499D7D3D.7090703@gentoo.org
In Reply to: Re: [gentoo-dev] Re: bzr.eclass by Nirbheek Chauhan
1 Nirbheek Chauhan wrote:
2 > On Thu, Feb 19, 2009 at 2:56 PM, Ulrich Mueller <ulm@g.o> wrote:
3 >> -DEPEND=">=dev-util/bzr-1.5
4 >> - dev-util/diffstat"
5 >> +DEPEND=">=dev-util/bzr-1.5"
6 >>
7 >> - ${EBZR_DIFF_CMD} | diffstat
8 >> + [ -x /usr/bin/diffstat ] && ${EBZR_DIFF_CMD} | /usr/bin/diffstat
9 >>
10 >
11 > Isn't this better?
12 >
13 > type diffstat &>/dev/null && {EBZR_DIFF_CMD} | diffstat
14 >
15 > It's independent of where diffstat is (in PATH or otherwise)
16 >
17
18 or use has_version dev-util/diffstat
19
20 Regards,
21 Petteri

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Re: bzr.eclass Nirbheek Chauhan <nirbheek.chauhan@×××××.com>