#!/usr/bin/env bash # this will allow matching files also in subdirs with **/*.json pattern shopt -s globstar source "$(dirname "${BASH_SOURCE}")/lib/init.sh" GODEP_ROOT="${OS_ROOT}/vendor" KUBE_ROOT=${1:-""} KUBE_GODEP_ROOT="${GODEP_ROOT}/k8s.io/kubernetes" if [ -z "$KUBE_ROOT" ]; then echo "usage: copy-kube-artifacts.sh " exit 255 fi # Copy special files. rsync -av \ --exclude='examples/blog-logging/diagrams/***' \ --exclude='pkg/ui/data/swagger/datafile.go' \ --include-from=- \ --include='*/' \ --exclude='*' \ --prune-empty-dirs \ $KUBE_ROOT/ $KUBE_GODEP_ROOT <