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