bash: rename main bash completion file

Since the `lxc` binary is actually provided by lxd, the main
bash-completion file needs to be moved away to not conflict with a bash
completion file provided for the `lxc` binary by lxd.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
This commit is contained in:
Antonio Terceiro 2022-05-11 16:49:35 -03:00
parent 053cb087b6
commit 25d1b3fb09
5 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
EXTRA_DIST = lxc
EXTRA_DIST = _lxc
if ENABLE_BASH
dist_bashcomp_DATA = lxc
dist_bashcomp_DATA = _lxc
endif

View File

@ -2,8 +2,8 @@
bash_completion = configure_file(
configuration: conf,
input: 'lxc.in',
output: 'lxc',
input: '_lxc.in',
output: '_lxc',
install: true,
install_dir: bashcompletiondir)
@ -34,6 +34,6 @@ foreach cmd: [
'lxc-wait',
]
install_symlink(cmd,
pointing_to: 'lxc',
pointing_to: '_lxc',
install_dir: bashcompletiondir)
endforeach

View File

@ -899,7 +899,7 @@ AC_CONFIG_FILES([
config/apparmor/abstractions/start-container
config/selinux/Makefile
config/bash/Makefile
config/bash/lxc
config/bash/_lxc
config/init/Makefile
config/init/common/Makefile
config/init/common/lxc-containers

View File

@ -2682,7 +2682,7 @@ if ENABLE_BASH
install-data-local:
cd $(DESTDIR)$(bashcompdir); \
for bin in $(bin_PROGRAMS) ; do \
ln -sf lxc $$bin ; \
ln -sf _lxc $$bin ; \
done
endif
endif