Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: dberkholz@g.o
Subject: Re: [gentoo-dev] New eclass: scons.eclass
Date: Wed, 06 Oct 2010 18:28:10
Message-Id: 20101006202626.66d21d21@pomiocik.lan
In Reply to: Re: [gentoo-dev] New eclass: scons.eclass by Donnie Berkholz
1 On Wed, 6 Oct 2010 12:52:33 -0500
2 Donnie Berkholz <dberkholz@g.o> wrote:
3
4 > > local flag=${1}
5 > > local varname=${2:-${flag#!}}
6 >
7 > Could you explain how this works to me, please? It seems like you're
8 > reversing the logic when people use the !flag syntax.
9
10 It's just the variable (macro) name; the 'flag' var passes ! to use.
11 This stripping is just intended to avoid outputting things like
12 '!ssl=1' by default, and avoid guesses like 'nossl'.
13
14 --
15 Best regards,
16 Michał Górny

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] New eclass: scons.eclass Donnie Berkholz <dberkholz@g.o>