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