]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: Make symlinks to vsh bash-completion script
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 24 Jan 2018 15:42:00 +0000 (16:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 31 Jan 2018 14:41:51 +0000 (15:41 +0100)
commit08327dfff309118892b51a01ee3a647530c29c0f
tree29057433f68d73b42f6d8cb4af1f1b9519a11302
parent74f044acf7921c9c6a2f7681916c016c3b6d7f57
tools: Make symlinks to vsh bash-completion script

The bash-completion project documents that only those scripts
from $BASH_COMPLETIONS_DIR that share name with the current
command for which <TAB> was hit are loaded [1]. This means, that
vsh script we have there is not loaded. We have to create
symlinks for virsh and virt-admin.

At the same time, we have to create new RPM package because
virt-admin and client packages are independent. That means we
cannot place the vsh script in either of them. What we can do is
to have a different package that contains the completion script
and then virt-admin and client packages contain only the symlink
and require the bash-completion package.

1: https://github.com/scop/bash-completion#faq

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
libvirt.spec.in
tools/Makefile.am