#!/bin/sh
rm -rf kustomize
mkdir kustomize
export GOPATH=`pwd`/kustomize
#go get -v -d -u github.com/kubernetes-sigs/kustomize/...
#go get -v -d sigs.k8s.io/kustomize/...
git clone --depth 1 https://github.com/kubernetes-sigs/kustomize/ $GOPATH/src/sigs.k8s.io/kustomize
#git clone --depth 1 https://sigs.k8s.io/kustomize/ $GOPATH/src/sigs.k8s.io/kustomize
#( cd $GOPATH/src/sigs.k8s.io/kustomize && go get -v -d )
tar cf - --exclude .git kustomize | xz -9 >kustomize-`date '+%Y%m%d'`.tar.xz
rm -rf kustomize
