From 1c6f5b5fff92fcb6220da7b9422f4d6134985fdf Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Tue, 25 Oct 2016 13:43:55 +0100 Subject: [PATCH] Add shell completions to tgz Signed-off-by: Justin Cormack --- hack/make/tgz | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/make/tgz b/hack/make/tgz index b723746f16..f926326eb4 100644 --- a/hack/make/tgz +++ b/hack/make/tgz @@ -57,6 +57,12 @@ for d in "$CROSS/"*/*; do # copy over all the extra binaries copy_binaries $TAR_PATH + # add completions + for s in bash fish powershell zsh; do + mkdir -p $TAR_PATH/completion/$s + cp -L contrib/completion/$s/*docker* $TAR_PATH/completion/$s/ + done + if [ "$IS_TAR" == "true" ]; then echo "Creating tgz from $BUILD_PATH and naming it $TGZ" tar --numeric-owner --owner 0 -C "$BUILD_PATH" -czf "$TGZ" $TAR_BASE_DIRECTORY