]> xenbits.xensource.com Git - xen.git/commitdiff
tools/xl: use proper name for bash_completion file
authorOlaf Hering <olaf@aepfle.de>
Tue, 20 Oct 2020 12:39:28 +0000 (14:39 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Jan 2021 14:28:44 +0000 (14:28 +0000)
Files in the bash-completion dirs should be named like the commands,
without suffix. Without this change 'xl' will not be recognized as a
command with completion support if BASH_COMPLETION_DIR is set to
/usr/share/bash-completion/completions.

Fixes: 9136a919b ("xl: Add basic bash completion for xl command.")
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xl/Makefile
tools/xl/bash-completion

index bdf67c84646151ce1ad280d66ba086c105e3c66c..656b21c7dac4020e9a1d85f67845a66495ef4e84 100644 (file)
@@ -45,11 +45,11 @@ install: all
        $(INSTALL_DIR) $(DESTDIR)$(sbindir)
        $(INSTALL_DIR) $(DESTDIR)$(BASH_COMPLETION_DIR)
        $(INSTALL_PROG) xl $(DESTDIR)$(sbindir)
-       $(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh
+       $(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl
 
 .PHONY: uninstall
 uninstall:
-       rm -f $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh
+       rm -f $(DESTDIR)$(BASH_COMPLETION_DIR)/xl
        rm -f $(DESTDIR)$(sbindir)/xl
 
 .PHONY: clean
index b7cd6b3992fa22f33ffe9d4851d122383ab8e319..7c6ed32f88f90af735ff61fa3be5f13044f6a933 100644 (file)
@@ -1,4 +1,4 @@
-# Copy this file to /etc/bash_completion.d/xl.sh
+# Copy this file to /etc/bash_completion.d/xl
 
 _xl()
 {