Gentoo Archives: gentoo-dev

From: Maxim Koltsov <maksbotan@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: RFC: leechcraft.eclass
Date: Thu, 18 Aug 2011 15:33:21
Message-Id: CAB_KkxwssEjc_uzmeY1cM_XBAMU+f4ghWeucHdaiPiegO8iEZQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] Re: RFC: leechcraft.eclass by Fabian Groffen
1 2011/8/18 Fabian Groffen <grobian@g.o>:
2 >> > if [ "${LC_PCAT+x}" != "x" ]; then
3 >> >     CMAKE_USE_DIR="${S}/src/plugins/${LC_PCAT}/${PN#leechcraft-}"
4 >> > else
5 >> >     if [[ ${PN} != "leechcraft-core" ]]; then
6 >> >             CMAKE_USE_DIR="${S}/src/plugins/${PN#leechcraft-}"
7 >> >     else
8 >> >             CMAKE_USE_DIR="${S}/src"
9 >> >     fi
10 >> > fi
11 >>
12 >> if-elif-else-fi.
13 >
14 > This sounds like a kind of bogus suggestion to me.  Mixing use of [ and
15 > [[, on the other hand, is more what deserves attention here.
16
17 'elif' seems more convenient here, i just forgot about it :)
18
19 --
20 Regards, Maxim.