git: da864ad35667 - main - sysutils/smug: Simplify shell completion installation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Dec 2022 21:15:42 UTC
The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=da864ad35667ca83742a1b34e1d75eedc71d5f06 commit da864ad35667ca83742a1b34e1d75eedc71d5f06 Author: Lewis Cook <lcook@FreeBSD.org> AuthorDate: 2022-12-13 20:46:02 +0000 Commit: Lewis Cook <lcook@FreeBSD.org> CommitDate: 2022-12-13 21:11:45 +0000 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}