dev-build/just: add manpage/completion generation

Sorry took awhile to figure this out, the one time
I didn't test before pushing.

Closes: https://bugs.gentoo.org/933682
Signed-off-by: Joe Kappus <joe@wt.gd>
This commit is contained in:
Joe Kappus
2024-06-07 19:43:06 -04:00
parent 91d0f84838
commit 56a211875e

View File

@@ -208,16 +208,23 @@ src_install() {
cargo_src_install
mkdir -p man
./target/release/just --man > man/just.1
./target/release/just --completions $shell > completions/just.$shell
doman man/*
einstalldocs
# bash-completion
./target/release/just --completions bash > completions/just.bash
newbashcomp "completions/${PN}.bash" "${PN}"
# zsh-completion
./target/release/just --completions zsh > completions/just.zsh
newzshcomp "completions/${PN}.zsh" "_${PN}"
# fish-completion
./target/release/just --completions fish > completions/just.fish
dofishcomp "completions/${PN}.fish"
}