mpc: install bash completion

Closes #32797.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Elan Ruusamäe 2018-10-07 22:14:10 +03:00 committed by FX Coudert
parent 2bd1e5bbae
commit db1a060ea0

View file

@ -20,9 +20,13 @@ class Mpc < Formula
system "meson", "--prefix=#{prefix}", ".", "output"
system "ninja", "-C", "output"
system "ninja", "-C", "output", "install"
bash_completion.install "contrib/mpc-completion.bash" => "mpc"
rm share/"doc/mpc/contrib/mpc-completion.bash"
end
test do
assert_match "query", shell_output("#{bin}/mpc list 2>&1", 1)
assert_match "-F _mpc", shell_output("source #{bash_completion}/mpc && complete -p mpc")
end
end