File: bootstrap

package info (click to toggle)
golang-github-gophercloud-gophercloud 0.0~git20180917.45f1c769-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,768 kB
  • sloc: sh: 98; makefile: 14
file content (25 lines) | stat: -rwxr-xr-x 625 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# This script helps new contributors set up their local workstation for
# gophercloud development and contributions.

# Create the environment
export GOPATH=$HOME/go/gophercloud
mkdir -p $GOPATH

# Download gophercloud into that environment
go get github.com/gophercloud/gophercloud
cd $GOPATH/src/github.com/gophercloud/gophercloud
git checkout master

# Write out the env.sh convenience file.
cd $GOPATH
cat <<EOF >env.sh
#!/bin/bash
export GOPATH=$(pwd)
export GOPHERCLOUD=$GOPATH/src/github.com/gophercloud/gophercloud
EOF
chmod a+x env.sh

# Make changes immediately available as a convenience.
. ./env.sh