fix(Makefile): generate shell completions on remote system

This commit is contained in:
Markus Pesch 2020-01-09 21:55:51 +01:00
parent a507bef108
commit ca4269fff8
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
1 changed files with 3 additions and 0 deletions

View File

@ -285,6 +285,9 @@ container-run:
PHONY+=${FLUCKY_REMOTE:%=remote/%}
remote/${FLUCKY_REMOTE}: bin/linux/arm/7/${EXECUTABLE}
scp bin/linux/arm/7/${EXECUTABLE} root@${FLUCKY_REMOTE}:/usr/local/bin/${EXECUTABLE}
ssh root@${FLUCKY_REMOTE} 'mkdir --parent /etc/bash_completion.d || true'
ssh root@${FLUCKY_REMOTE} 'flucky completion bash > /etc/bash_completion.d/flucky.sh && chmod +x /etc/bash_completion.d/flucky.sh'
ssh root@${FLUCKY_REMOTE} 'flucky completion zsh > /etc/bash_completion.d/flucky.zsh && chmod +x /etc/bash_completion.d/flucky.zsh'
ssh root@${FLUCKY_REMOTE} 'chmod +x /usr/local/bin/${EXECUTABLE}'
# PHONY