Browse code

Add shell completions to tgz

Signed-off-by: Justin Cormack <justin.cormack@docker.com>

Justin Cormack authored on 2016/10/25 21:43:55
Showing 1 changed files
... ...
@@ -57,6 +57,12 @@ for d in "$CROSS/"*/*; do
57 57
 	# copy over all the extra binaries
58 58
 	copy_binaries $TAR_PATH
59 59
 
60
+	# add completions
61
+	for s in bash fish powershell zsh; do
62
+		mkdir -p $TAR_PATH/completion/$s
63
+		cp -L contrib/completion/$s/*docker* $TAR_PATH/completion/$s/
64
+	done
65
+
60 66
 	if [ "$IS_TAR" == "true" ]; then
61 67
 		echo "Creating tgz from $BUILD_PATH and naming it $TGZ"
62 68
 		tar --numeric-owner --owner 0 -C "$BUILD_PATH" -czf "$TGZ" $TAR_BASE_DIRECTORY