Date: Mon, 16 Jul 2007 19:22:38 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: Dmitry Morozovsky <marck@rinet.ru> Cc: ports@freebsd.org, Pav Lucistnik <pav@freebsd.org>, Doug Barton <dougb@freebsd.org> Subject: Re: /var/db/ports/*/options auto-generation Message-ID: <469C27EE.1070401@u.washington.edu> In-Reply-To: <20070717015620.S82541@woozle.rinet.ru> References: <20070715201435.Y39602@woozle.rinet.ru> <469B0894.9050408@FreeBSD.org> <20070716183849.S73148@woozle.rinet.ru> <1184612752.82441.19.camel@ikaros.oook.cz> <20070717015620.S82541@woozle.rinet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Dmitry Morozovsky wrote: > On Mon, 16 Jul 2007, Pav Lucistnik wrote: > > PL> > It's not exactly what I want as I need to repeat Tab-Enter pairs for each of > PL> > OPTIONS contained port. What I want is generation options file for all the > PL> > ports including defaults (possibly overrided in /etc/make.conf) WITH/WITHOUT > PL> > lines... > PL> > PL> Ok, so what about make -V OPTIONS in the port directory, and some > PL> creative awkery on the output? > > It's definitely possible, but it constructs single line of output which is > rather hard to parse (though possible, surely). > 'for i in {WITH/WITHOUT file}' or read(1) solves that little problem. The only catch is that there's a bit of added overhead, but I doubt it's much.. > What about creating special target such as 'create-options-file' or > 'update-options-file' acting depending of existance of /var/db/ports/*/options > and then acting accordingly? > That might be a good idea, as I think it'd allow more tools to benefit from the added functionality. > Well, after a little bit of thought I suppose it should be presented to > ports-mgr@ to decide... > > > Sincerely, > D.Marck [DM5020, MCK-RIPE, DM3-RIPN] > -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?469C27EE.1070401>