blob: 5658cb975a9a51293c362150afe6fc4e1ccf6c7d [file] [log] [blame]
Samuel A. Falvo IIf614c932013-06-20 15:18:43 -07001#!/bin/bash
2#
3# This script helps new contributors set up their local workstation for
4# gophercloud development and contributions.
5
6# Create the environment
7export GOPATH=$HOME/go/gophercloud
8mkdir -p $GOPATH
9
10# Download gophercloud into that environment
Max Lincoln75e06ec2013-12-13 00:00:12 -030011go get github.com/maxlinc/gophercloud
12cd $GOPATH/src/github.com/maxlinc/gophercloud
Samuel A. Falvo IIf614c932013-06-20 15:18:43 -070013git checkout master
14
15# Write out the env.sh convenience file.
16cd $GOPATH
17cat <<EOF >env.sh
18#!/bin/bash
19export GOPATH=$(pwd)
Max Lincoln75e06ec2013-12-13 00:00:12 -030020export GOPHERCLOUD=$GOPATH/src/github.com/maxlinc/gophercloud
Samuel A. Falvo IIf614c932013-06-20 15:18:43 -070021EOF
22chmod a+x env.sh
23
24# Make changes immediately available as a convenience.
25. ./env.sh
26