Skip to contentSkip to conversation

touch menuconfig

Buildroot Ulf Samuelsson 6 participants 11 messages Aug 1, 2007 – Aug 2, 2007

lore
Share & tools
lore
#0 lore raw

I find it quite useful to have an empty file "menuconfig" in the top directory, so I can get command completion when doing

$ make menuconfig

Any objections to adding this?

Best Regards
Ulf Samuelsson

#1 lore raw

I don't have an objection to the file and command completion, but I wonder
what could be put in the file?
What hints could be placed in the file that would be of aid? At first
thought it would be hints, but then that is what is in docs, so my next thought is a link to a hint file in docs, perhaps docs/README.
My 2c,
Frank

Quoted 17 lines

I find it quite useful to have an empty file "menuconfig" in the top directory,
so I can get command completion when doing

$ make menuconfig

Any objections to adding this?

Best Regards
Ulf Samuelsson

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

#2 lore raw
Quoted 13 lines
Quoted 11 lines

I find it quite useful to have an empty file "menuconfig" in the top directory,
so I can get command completion when doing

$ make menuconfig

Any objections to adding this?

Best Regards
Ulf Samuelsson

Quoted 8 lines

I don't have an objection to the file and command completion, but I wonder
what could be put in the file?
What hints could be placed in the file that would be of aid? At first
thought it would be hints, but then that is what is in docs, so my next thought is a link to a hint file in docs, perhaps docs/README.
My 2c,
Frank

"make menuconfig" starts the configuration, but linking it to docs/README obviously improves the usability.

Anyone else?

Best Regards
Ulf Samuelsson

#3 lore raw
Quoted 2 lines · Ulf Samuelsson

"make menuconfig" starts the configuration, but linking it to docs/README obviously improves the usability.

In that case it would be more intuitive to symlink:

README -> docs/README

Quoted 1 line

Anyone else?

Yes. Please don't do confusing things like that and clutter the name space more than necessary.

If it's command completion you're looking for write something about that in the docs-directory.

Debian, for example, distributes /etc/bash_completion. And that's 215907 bytes completion worth :)
Similar for zsh. For example, the directory:

/usr/share/zsh/4.3.2/functions/Completion/Unix

has a lot of those.

Cheers,

Signature · 1 line
Cristian
#4 lore raw
In reply to Frank Kujawski

Just to have commandline-completion you dont have to put another silly file in the directory confusing/annoying anyone.
See the section "Programmable Completion" in man 1 bash / your favorite shell.

regards
Benjamin

Quoted 31 lines · Frank Kujawski

I don't have an objection to the file and command completion, but I wonder
what could be put in the file?
What hints could be placed in the file that would be of aid? At first
thought it would be hints, but then that is what is in docs, so my next thought is a link to a hint file in docs, perhaps docs/README.
My 2c,
Frank

Quoted 8 lines

I find it quite useful to have an empty file "menuconfig" in the top directory,
so I can get command completion when doing

$ make menuconfig

Any objections to adding this?

Quoted 9 lines

Best Regards
Ulf Samuelsson

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

#5 lore raw

ons 2007-08-01 klockan 09:35 +0200 skrev Benjamin Tietz:

Quoted 8 lines

Just to have commandline-completion you dont have to put another silly file in the directory confusing/annoying anyone.
See the section "Programmable Completion" in man 1 bash / your favorite shell.

regards
Benjamin

OK so you do:

complete -W menuconfig make

Thanks
Ulf

#6 lore raw
In reply to Ulf Samuelsson

All,
Ulf,

Quoted 4 lines · Ulf Samuelsson

I find it quite useful to have an empty file "menuconfig" in the top directory, so I can get command completion when doing

$ make menuconfig
Any objections to adding this?

Yep. I'd prefer having a file somewhere in the tree (e.g. in docs/ or a new tools/ directory) that contains some completion functions for somw shells (at least bash and zsh come to mind) and that the users could source in theit startup scripts.

Having a file which sole purpose is help completion would uselessly clutter the directory, IMRHO.

I once had make-completion working in bash: it would scan the makefile in some manner and suggest matching options, files or rules depending on the pre- existing command line (was that in a Mandriva?). I'll try to dig that up and come back to you later this evening (GMT+2).

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< ?_? >==-- ?------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
?------------------------------?-------?------------------?--------------------?
#7 lore raw

All,
Ulf,

Quoted 9 lines · Yann E. MORIN
Quoted 4 lines · Ulf Samuelsson

I find it quite useful to have an empty file "menuconfig" in the top directory, so I can get command completion when doing

$ make menuconfig
Any objections to adding this?

I once had make-completion working in bash: it would scan the makefile in some manner and suggest matching options, files or rules depending on the pre- existing command line (was that in a Mandriva?). I'll try to dig that up and come back to you later this evening (GMT+2).

OK, it's still present in the bash-completion package of Mandriva 2007.0. Debian has it as well. Both have good make completion.

So I don't see any reason to provide it by ourselves. But we can still point to completion somewhere in docs/

I will try to submit a patch to document completion after dinner.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< ?_? >==-- ?------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
?------------------------------?-------?------------------?--------------------?
#8 lore raw

ons 2007-08-01 klockan 20:27 +0200 skrev Yann E. MORIN:

Quoted 14 lines

All,
Ulf,

Quoted 9 lines · Yann E. MORIN
Quoted 4 lines · Ulf Samuelsson

I find it quite useful to have an empty file "menuconfig" in the top directory, so I can get command completion when doing

$ make menuconfig
Any objections to adding this?

I once had make-completion working in bash: it would scan the makefile in some manner and suggest matching options, files or rules depending on the pre- existing command line (was that in a Mandriva?). I'll try to dig that up and come back to you later this evening (GMT+2).

Quoted 8 lines

OK, it's still present in the bash-completion package of Mandriva 2007.0. Debian has it as well. Both have good make completion.

So I don't see any reason to provide it by ourselves. But we can still point to completion somewhere in docs/

I will try to submit a patch to document completion after dinner.

complete -W menuconfig make

works for me and the rest is not so common that it is a pain to write it out, but if it is easy to install, why not!

Quoted 3 lines

Regards,
Yann E. MORIN.

#9 lore raw

Ulf,
All,

Quoted 7 lines · Ulf Samuelsson

ons 2007-08-01 klockan 20:27 +0200 skrev Yann E. MORIN:

Quoted 2 lines

So I don't see any reason to provide it by ourselves. But we can still point to completion somewhere in docs/

complete -W menuconfig make
works for me and the rest is not so common that it is a pain to write it out, but if it is easy to install, why not!

OK, here is a updated docs/buildroot.html.
Do as you want, apply it, or toss it. :-)

Regards,
Yann E. MORIN.

Signature · 13 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< ?_? >==-- ?------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
?------------------------------?-------?------------------?--------------------?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot.completion-doc.patch
Type: text/x-diff
Size: 1472 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070801/2c166fd1/attachment-0001.bin 
#10 lore raw
In reply to Ulf Samuelsson
Quoted 6 lines · Ulf Samuelsson

I find it quite useful to have an empty file "menuconfig" in the top directory, so I can get command completion when doing

$ make menuconfig

Any objections to adding this?

Yes, i object to this. Fix your shell instead (or use zsh).