subport syntax clarification

Joshua Root jmr at macports.org
Sat Jan 14 14:58:41 PST 2012


On 2012-1-15 09:03 , Ryan Schmidt wrote:
> I get the impression that the following two blocks are equivalent. Is this true?
> 
> 
> if {${name} == ${subport}} {
> 	...
> }
> 
> 
> subport ${name} {
> 	...
> }
> 
> 
> I've been using the former sometimes, but I think the latter is more succinct and I might try that instead, unless there's a reason not to.

Not entirely; the latter also adds to the set of known subports. (I also
wonder why you specifically use ${name} in your question?)

- Josh


More information about the macports-dev mailing list