]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: Generate per-command bash completion script
authorAndrea Bolognani <abologna@redhat.com>
Mon, 19 Apr 2021 16:40:14 +0000 (18:40 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 22 Apr 2021 09:01:27 +0000 (11:01 +0200)
commitcf66ee8ddcafd0d82e0803ba9113c26aaab6eb3b
treecc7c10907f869d1a0b1197d198d12cd61a497a8e
parentc813acc0df3a425090bc1564ae844af3a40d2dd2
tools: Generate per-command bash completion script

The current setup uses a single script that is symlinked twice
and that tries to configure bash completion for both virsh and
virt-admin, even if only one of them is installed. This also
forces us to have a -bash-completion RPM package that only
contains the tiny shared file.

Rework bash completion support so that two scripts are
generated, each one tailored to a specific command.

Since the shared script no longer exists after this change,
the corresponding RPM package becomes empty.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
libvirt.spec.in
tools/bash-completion/meson.build
tools/bash-completion/vsh.in [moved from tools/bash-completion/vsh with 91% similarity]