Subject: Re: code: which option from an options group was selected?
To: Alan Barrett <apb@cequrux.com>
From: Todd Vierling <tv@duh.org>
List: tech-pkg
Date: 09/19/2005 14:27:29
On Mon, 19 Sep 2005, Alan Barrett wrote:

> Try something like this (untested):
>
> .for _opt_ in ${PKG_OPTIONS_GROUP.mozilla}
> .if !empty(PKG_OPTIONS:M${_opt_})
> MOZILLA= ${_opt_}
> .endif
> .endfor

The following will work without requiring .for (thus it's faster, not
position dependent, and more friendly to the derecursion work I'll get back
to eventually... <g>):

MOZILLA=	${PKG_OPTIONS:@opt@${PKG_OPTIONS_GROUP.mozilla:M${opt}}@}

-- 
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>