blob: 5bf7305addcce5916e0dca5b096b36739e85984d [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
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +020011go get gerrit.mcp.mirantis.net/debian/gophercloud.git
12cd $GOPATH/src/gerrit.mcp.mirantis.net/debian/gophercloud.git
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)
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +020020export GOPHERCLOUD=$GOPATH/src/gerrit.mcp.mirantis.net/debian/gophercloud.git
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