浏览代码

Add shell completions to tgz

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Justin Cormack 8 年之前
父节点
当前提交
1c6f5b5fff
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      hack/make/tgz

+ 6 - 0
hack/make/tgz

@@ -57,6 +57,12 @@ for d in "$CROSS/"*/*; do
 	# copy over all the extra binaries
 	# copy over all the extra binaries
 	copy_binaries $TAR_PATH
 	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
 	if [ "$IS_TAR" == "true" ]; then
 		echo "Creating tgz from $BUILD_PATH and naming it $TGZ"
 		echo "Creating tgz from $BUILD_PATH and naming it $TGZ"
 		tar --numeric-owner --owner 0 -C "$BUILD_PATH" -czf "$TGZ" $TAR_BASE_DIRECTORY
 		tar --numeric-owner --owner 0 -C "$BUILD_PATH" -czf "$TGZ" $TAR_BASE_DIRECTORY