This is the mail archive of the
mailing list for the GCC project.
Re: 3.0.4 builds for solaris 2.7 and 2.8
On Sun, Feb 24, 2002 at 09:08:24AM -0300, Alexandre Oliva wrote:
> On Feb 24, 2002, Fergus Henderson <firstname.lastname@example.org.OZ.AU> wrote:
> > For example, one way to achieve this would be for the configure
> > scripts to accept a new option `--list-supported-options',
> The best option would be to run `sub/configure --help' and extract the
> list of options from that,
For an example, see the "bash autocompletion" project:
This hooks arbitrary commands to arbitrary shell functions. When
"<Tab><Tab>" is used to try and auto-complete a command, the appropriate
shell function is executed to generate the list of possible completions.
Somebody has already contributed a function for "configure" commands. If you
the function runs "configure --help" and then strips out the possible
completions. It's rather handy.
I've already sent in another function to do the same thing with the GCC
frontends, e.g., typing "g++ -f<tab><tab>" will list all the -f* options.
Yet more motivation for documenting the options...
> but even then, you could miss some, because
> --help doesn't recurse to sub-sub-packages.
Win some, lose some. :-)
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams