Gentoo Archives: gentoo-dev

From: Alexis Ballier <aballier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: opam.eclass
Date: Tue, 25 Jul 2017 08:26:11
Message-Id: 20170725102558.79b2cbaa@gentoo.org
In Reply to: Re: [gentoo-dev] New eclass: opam.eclass by "Aaron W. Swenson"
1 On Mon, 24 Jul 2017 18:11:39 -0400
2 "Aaron W. Swenson" <titanofold@g.o> wrote:
3
4 > On 2017-07-24 17:20, Alexis Ballier wrote:
5 > > Hey,
6 > >
7 > > Here is an eclass that would allow me to factor quite a bit of
8 > > redundant code.
9 > >
10 > > …
11 > > if [ -d "${ED}/usr/share/doc/${PF}/${PN}" ] ; then
12 >
13 > It’s always been recommended to me that we should use the [[ … ]]
14 > form.
15
16 Doesn't make much difference here and I've always been recommending the
17 other way :p
18 (the idea is that you don't get to write the [[ ]] in a /bin/sh script
19 just because you're used to it; if you only do ebuilds or bash, then
20 you don't care, but I definitely do other scripts)

Replies

Subject Author
Re: [gentoo-dev] New eclass: opam.eclass Peter Stuge <peter@×××××.se>