diff options
author | Jeff Henson | 2019-01-21 20:38:34 -0700 |
---|---|---|
committer | Jeff Henson | 2019-01-21 20:38:34 -0700 |
commit | f42ae29339a7e01ae69ba258f4a2d94effea1622 (patch) | |
tree | 8d6c9ab7261c69263dde558d0b2d25922f27f769 | |
parent | e83958e57ae9b5c20e110df5a2de661d297e9470 (diff) | |
download | aur-f42ae29339a7e01ae69ba258f4a2d94effea1622.tar.gz |
Call oc to generate completions
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 4 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = origin-client pkgdesc = Openshift client pkgver = 3.11.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/openshift/origin arch = x86_64 license = Apache @@ -1,7 +1,7 @@ pkgname=origin-client pkgdesc="Openshift client" pkgver=3.11.0 -pkgrel=2 +pkgrel=3 arch=('x86_64') url="https://github.com/openshift/origin" license=('Apache') @@ -13,9 +13,6 @@ sha256sums=('SKIP') build() { cd "${srcdir}/origin" - # Fix zsh completion - sed -i 's/kubectl/oc/g' contrib/completions/zsh/oc - make WHAT=cmd/oc hack/generate-docs.sh } @@ -25,6 +22,6 @@ package() { install -Dm755 _output/local/bin/linux/amd64/oc -t "$pkgdir/usr/bin" install -Dm644 docs/man/man1/* -t "$pkgdir/usr/share/man/man1" - install -Dm644 contrib/completions/bash/oc "$pkgdir/usr/share/bash-completion/completions/oc" - install -Dm644 contrib/completions/zsh/oc "$pkgdir/usr/share/zsh/site-functions/_oc" + "$pkgdir/usr/bin/oc" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/oc" + "$pkgdir/usr/bin/oc" completion zsh | sed 's/kubectl/oc/g' | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_oc" } |