From e0c1b659886aafbe3a3533a084142e4df7eb61ba Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Tue, 22 Feb 2022 11:49:40 +0100 Subject: [PATCH] rustup: generate shell completions for cargo --- srcpkgs/rustup/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template index b55cbe09d868..6c5ad1e20f55 100644 --- a/srcpkgs/rustup/template +++ b/srcpkgs/rustup/template @@ -1,7 +1,7 @@ # Template file for 'rustup' pkgname=rustup version=1.24.3 -revision=1 +revision=2 # rustup doesn't recognize this target archs="~armv*-musl" build_style=cargo @@ -31,6 +31,10 @@ post_build() { vtargetrun ./rustup completions zsh >rustup.zsh vtargetrun ./rustup completions bash >rustup.bash vtargetrun ./rustup completions fish >rustup.fish + + # generate cargo completions + vtargetrun ./rustup completions bash cargo >cargo.bash + vtargetrun ./rustup completions zsh cargo >cargo.zsh } do_install() { @@ -40,6 +44,9 @@ do_install() { vcompletion rustup.fish fish vcompletion rustup.zsh zsh + vcompletion cargo.bash bash cargo + vcompletion cargo.zsh zsh cargo + vdoc README.md vlicense LICENSE-APACHE vlicense LICENSE-MIT