#!/bin/sh
rm -rf terraform
mkdir terraform
cd terraform
export GOPATH=`pwd`
git clone --depth 1 https://github.com/hashicorp/terraform.git src/github.com/hashicorp/terraform
( cd src/github.com/hashicorp/terraform && go get -v -d )

#go get -v -d github.com/terraform-providers/terraform-provider-external/...
#go get -v -d github.com/terraform-providers/terraform-provider-local/...
#go get -v -d github.com/terraform-providers/terraform-provider-template/...
#go get -v -d github.com/terraform-providers/terraform-provider-tls/...
#go get -v -d github.com/terraform-providers/terraform-provider-http/...
#go get -v -d github.com/terraform-providers/terraform-provider-dns/...
#go get -v -d github.com/terraform-providers/terraform-provider-archive/...

#go get -v -d github.com/terraform-providers/terraform-provider-nomad/...
#go get -v -d github.com/terraform-providers/terraform-provider-terraform/...
#go get -v -d github.com/terraform-providers/terraform-provider-consul/...
#go get -v -d github.com/terraform-providers/terraform-provider-vault/...
#go get -v -d github.com/terraform-providers/terraform-provider-docker/...
#go get -v -d github.com/terraform-providers/terraform-provider-kubernetes/...
#go get -v -d github.com/terraform-providers/terraform-provider-openstack/...
#go get -v -d github.com/terraform-providers/terraform-provider-rundeck/...

#go get -v -d github.com/terraform-providers/terraform-provider-aws/...
#go get -v -d github.com/terraform-providers/terraform-provider-profitbricks/...
#go get -v -d github.com/terraform-providers/terraform-provider-google/...
#go get -v -d github.com/terraform-providers/terraform-provider-azure/...
#go get -v -d github.com/terraform-providers/terraform-provider-heroku/...
#go get -v -d github.com/terraform-providers/terraform-provider-github/...

#go get -v -d github.com/terra-farm/terraform-provider-virtualbox/...
#go get -v -d github.com/Mastercard/terraform-provider-restapi/...
#go get -v -d github.com/GSLabDev/terraform-provider-httpfileupload/...
#go get -v -d github.com/scottwinkler/terraform-provider-shell/...
#go get -v -d github.com/dikhan/terraform-provider-openapi/...

cd ..

tar -c -v -f- --exclude .git terraform | xz -9 >terraform-`date '+%Y%m%d'`.tar.xz
rm -rf terraform
