1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

sysutils/smug: Simplify shell completion installation

This commit is contained in:
Lewis Cook 2022-12-13 20:46:02 +00:00
parent d7308cf12f
commit da864ad356

View File

@ -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}