mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-25 14:38:35 -06:00
Install fish completion for older fish versions
This commit is contained in:
parent
8e1fbc2647
commit
8ae53939c7
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
name="topgrade"
|
||||
version=10.3.3
|
||||
release=2
|
||||
release=3
|
||||
desc="Invoke the upgrade procedure of multiple package managers"
|
||||
architectures=('amd64' 'aarch64' 'armv7')
|
||||
maintainer='SinTan1729'
|
||||
|
@ -24,10 +24,10 @@ package() {
|
|||
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' >topgrade.8
|
||||
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/share/man/man8/topgrade.8"
|
||||
# completions
|
||||
# if $(command -v fish &>/dev/null); then
|
||||
# ./topgrade --gen-completion fish >topgrade.fish
|
||||
# install -Dm644 ./topgrade.fish "${pkgdir}/usr/share/fish/completions/topgrade.fish"
|
||||
# fi
|
||||
if $(command -v fish &>/dev/null) && [ $(echo $(fish --version | awk '{print $3}')$'\n'3.4.0 | sort -V | head -n1) != '3.4.0' ]; then
|
||||
./topgrade --gen-completion fish >topgrade.fish
|
||||
install -Dm644 ./topgrade.fish "${pkgdir}/usr/share/fish/completions/topgrade.fish"
|
||||
fi
|
||||
if $(command -v bash &>/dev/null); then
|
||||
./topgrade --gen-completion bash >topgrade.bash
|
||||
install -Dm644 ./topgrade.bash "${pkgdir}/usr/share/bash-completion/completions/topgrade"
|
||||
|
|
Loading…
Reference in a new issue