Skip to contentSkip to conversation

Bash completion script for util commands

PATCH New Yves Blusseau 1 participant 1 message Sep 6, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bash completion script for util commands

* Makefile.am: Add util/bash-completion.d directory
* configure.ac: Likewise.
* util/bash-completion.d/Makefile.am: New file.
* util/bash-completion.d/grub-completion.bash.in: Likewise.

---
 ChangeLog.completion.bash                      |    6 
 Makefile.am                                    |    2 
 configure.ac                                   |    1 
 util/bash-completion.d/Makefile.am             |   13 +
 util/bash-completion.d/grub-completion.bash.in |  469 ++++++++++++++++++++++++
 5 files changed, 490 insertions(+), 1 deletions(-)
 create mode 100644 ChangeLog.completion.bash
 create mode 100644 util/bash-completion.d/Makefile.am
 create mode 100644 util/bash-completion.d/grub-completion.bash.in
ChangeLog.completion.bash new file +6 -0
new file mode 100644
index 0000000..e57374a
@@ -0,0 +1,6 @@
+Bash completion script for util commands
+
+    * Makefile.am:  Add util/bash-completion.d directory
+    * configure.ac: Likewise.
+    * util/bash-completion.d/Makefile.am: New file.
+    * util/bash-completion.d/grub-completion.bash.in: Likewise.
Makefile.am +1 -1
index 1cf2297..c05d352 100644
@@ -1,7 +1,7 @@
 AUTOMAKE_OPTIONS = subdir-objects
 
 DEPDIR = .deps-util
-SUBDIRS = . grub-core po docs
+SUBDIRS = . grub-core po docs util/bash-completion.d
 
 include $(top_srcdir)/conf/Makefile.common
 include $(top_srcdir)/conf/Makefile.extra-dist
configure.ac +1 -0
index 49761af..9494969 100644
@@ -943,6 +943,7 @@ AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([grub-core/Makefile])
 AC_CONFIG_FILES([po/Makefile])
 AC_CONFIG_FILES([docs/Makefile])
+AC_CONFIG_FILES([util/bash-completion.d/Makefile])
 AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
 
 AC_OUTPUT
util/bash-completion.d/Makefile.am new file +13 -0
new file mode 100644
index 0000000..5817198
@@ -0,0 +1,13 @@
+
+bash_completion_source = grub-completion.bash.in
+bash_completion_script = grub
+
+EXTRA_DIST = $(bash_completion_source)
+
+CLEANFILES = $(bash_completion_script)
+
+bashcompletiondir = $(sysconfdir)/bash_completion.d
+bashcompletion_DATA = $(bash_completion_script)
+
+$(bash_completion_script): $(bash_completion_source) $(top_builddir)/config.status
+	$(top_builddir)/config.status --file=$@:$<
util/bash-completion.d/grub-completion.bash.in new file +469 -0

469 lines not on this page · raw message