#!/bin/sh
rm -rf helm
mkdir helm
export GOPATH=`pwd`/helm
mkdir -p $GOPATH/src/github.com/helm
#git clone --depth 1 https://github.com/helm/helm $GOPATH/src/github.com/helm/helm
git clone --depth 1 https://github.com/helm/helm $GOPATH/src/k8s.io/helm
#( cd $GOPATH/src/github.com/helm/helm
( cd $GOPATH/src/k8s.io/helm
  #glide install
  #make bootstrap SHELL=bash
  go get -v -d ./...
)
tar cf - --exclude .git --exclude .hg --exclude .svn helm | xz -9 >helm-`date '+%Y%m%d'`.tar.xz
rm -rf helm
