Bash completion script for grub util commands
PATCH 1/1 Bash completion script for grub util commands
--- ChangeLog.completion.bash | 3 Makefile.in | 4 util/integration/completion/grub-completion.bash | 450 ++++++++++++++++++++++ 3 files changed, 457 insertions(+), 0 deletions(-) create mode 100644 ChangeLog.completion.bash create mode 100644 util/integration/completion/grub-completion.bash
ChangeLog.completion.bash new file +3 -0
@@ -0,0 +1,3 @@ +2010-08-11 Yves Blusseau <[email protected]> + + * util/integration/completion/grub-completion.bash: New script
Makefile.in +4 -0
@@ -366,6 +366,10 @@ install-local: all dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ $(INSTALL_DATA) $$dir$$file $(DESTDIR)$(sysconfdir)/grub.d/$$dest; \ done + $(SHELL) $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/bash_completion.d + @file="grub-completion.bash"; dest="grub"; \ + if test -f "$$file"; then dir=; else dir="$(srcdir)/util/integration/completion/"; fi; \ + $(INSTALL_DATA) $$dir$$file $(DESTDIR)$(sysconfdir)/bash_completion.d/$$dest $(SHELL) $(mkinstalldirs) $(DESTDIR)$(libdir)/grub @list='$(lib_SCRIPTS)'; \ for file in $$list; do \
util/integration/completion/grub-completion.bash new file +450 -0
450 lines not on this page · raw message
Quoted 6 lines · Yves Blusseau
ChangeLog.completion.bash | 3 Makefile.in | 4 util/integration/completion/grub-completion.bash | 450 ++++++++++++++++++++++ 3 files changed, 457 insertions(+), 0 deletions(-) create mode 100644 ChangeLog.completion.bash create mode 100644 util/integration/completion/grub-completion.bash
20:59 <phcoder> cjwatson: is it convenient to install bash_completion scripts in non-bash package?
At least from this point of view, sure, I don't see a problem. I think perhaps util/integration/completion/grub-completion.bash is unnecessarily deep nesting in the source tree though; creating two levels of subdirectory at once seems a bit much. If it were me I'd probably put it in util/bash-completion.d/grub. (Also, I think the bikeshed should be pink.)
ChangeLog.completion.bash line 3
Quoted 9 lines
ChangeLog.completion.bash new file +3
-0@@ -0,0 +1,3 @@ +2010-08-11 Yves Blusseau <[email protected]> + + * util/integration/completion/grub-completion.bash: New script
I assume that this will in fact go in ChangeLog when committed to trunk.
Signature · 1 line
Colin Watson [[email protected]]