From da864ad35667ca83742a1b34e1d75eedc71d5f06 Mon Sep 17 00:00:00 2001 From: Lewis Cook Date: Tue, 13 Dec 2022 20:46:02 +0000 Subject: [PATCH] sysutils/smug: Simplify shell completion installation --- sysutils/smug/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sysutils/smug/Makefile b/sysutils/smug/Makefile index ebbb2cecc362..64efa08473cf 100644 --- a/sysutils/smug/Makefile +++ b/sysutils/smug/Makefile @@ -32,10 +32,10 @@ COMPLETIONS_PLIST_FILES= share/bash-completion/completions/${PORTNAME} \ MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz post-install-COMPLETIONS-on: - ${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.bash \ - ${STAGEDIR}${PREFIX}/share/bash-completion/completions/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.fish \ - ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/${PORTNAME}.fish +.for _shell in bash fish + ${INSTALL_DATA} ${WRKSRC}/completion/${PORTNAME}.${_shell} \ + ${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*} +.endfor post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}