pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kubectx: Install bash and fish shell completions



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Jun 3 01:37:38 2022 +0200
Changeset:	4e7b3adf566dafa4566d78a7dfad4469b8160ecf

Modified Files:
	kubectx/Makefile
	kubectx/PLIST

Log Message:
kubectx: Install bash and fish shell completions

XXX: There are also zsh completions that could be installed, help appreciated on
XXX: how/where to install them!

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4e7b3adf566dafa4566d78a7dfad4469b8160ecf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 kubectx/Makefile | 8 +++++++-
 kubectx/PLIST    | 4 ++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diffs:
diff --git a/kubectx/Makefile b/kubectx/Makefile
index ee8632f9c5..76f8cf4d54 100644
--- a/kubectx/Makefile
+++ b/kubectx/Makefile
@@ -15,12 +15,18 @@ USE_TOOLS+=	bash:run
 REPLACE_BASH+=	kubectx
 REPLACE_BASH+=	kubens
 
-INSTALLATION_DIRS=	bin
+INSTALLATION_DIRS+=	bin
+INSTALLATION_DIRS+=	share/bash-completion/completions
+INSTALLATION_DIRS+=	share/fish/completions
 
 do-build:
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/kubectx ${DESTDIR}${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/kubens ${DESTDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/completion/kubectx.bash ${DESTDIR}${PREFIX}/share/bash-completion/completions/kubectx
+	${INSTALL_DATA} ${WRKSRC}/completion/kubens.bash ${DESTDIR}${PREFIX}/share/bash-completion/completions/kubens
+	${INSTALL_DATA} ${WRKSRC}/completion/kubectx.fish ${DESTDIR}${PREFIX}/share/fish/completions
+	${INSTALL_DATA} ${WRKSRC}/completion/kubens.fish ${DESTDIR}${PREFIX}/share/fish/completions
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/kubectx/PLIST b/kubectx/PLIST
index 1bf19e2c0e..543ce2daaf 100644
--- a/kubectx/PLIST
+++ b/kubectx/PLIST
@@ -1,3 +1,7 @@
 @comment $NetBSD$
 bin/kubectx
 bin/kubens
+share/bash-completion/completions/kubectx
+share/bash-completion/completions/kubens
+share/fish/completions/kubectx.fish
+share/fish/completions/kubens.fish


Home | Main Index | Thread Index | Old Index