File tree Expand file tree Collapse file tree 3 files changed +44
-4
lines changed Expand file tree Collapse file tree 3 files changed +44
-4
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # change this to a specific release or branch
4
+ BRANCH=master
5
+ REPO=github.com/cosmos/cosmos-sdk
6
+
7
+ GO_VERSION=1.11.2
8
+
9
+ sudo apt-get update -y
10
+ sudo apt-get upgrade -y
11
+ sudo apt-get install -y make
12
+
13
+ # get and unpack golang
14
+ curl -O https://dl.google.com/go/go$GO_VERSION .linux-armv6l.tar.gz
15
+ tar -xvf go$GO_VERSION .linux-armv6l.tar.gz
16
+
17
+ # move go binary and add to path
18
+ sudo mv go /usr/local
19
+ echo " export PATH=\$ PATH:/usr/local/go/bin" >> ~ /.profile
20
+
21
+ # create the go directory, set GOPATH, and put it on PATH
22
+ mkdir go
23
+ echo " export GOPATH=$HOME /go" >> ~ /.profile
24
+ echo " export PATH=\$ PATH:\$ GOPATH/bin" >> ~ /.profile
25
+
26
+ source ~ /.profile
27
+
28
+ # get the code and move into repo
29
+ go get $REPO
30
+ cd $GOPATH /src/$REPO
31
+
32
+ # build & install master
33
+ git checkout $BRANCH
34
+ LEDGER_ENABLED=false make get_tools
35
+ LEDGER_ENABLED=false make get_vendor_deps
36
+ LEDGER_ENABLED=false make install
37
+
38
+ source ~ /.profile
Original file line number Diff line number Diff line change 14
14
15
15
# change this to a specific release or branch
16
16
set BRANCH=master
17
+ set REPO=github.com/cosmos/cosmos-sdk
18
+
19
+ set GO_VERSION=1.11.2
17
20
18
21
sudo pkg update
19
22
@@ -22,8 +25,8 @@ sudo pkg install -y gmake
22
25
sudo pkg install -y git
23
26
24
27
# get and unpack golang
25
- curl -O https://storage.googleapis.com/golang/go1.10 .freebsd-amd64.tar.gz
26
- tar -xvf go1.10 .freebsd-amd64.tar.gz
28
+ curl -O https://storage.googleapis.com/golang/go $GO_VERSION .freebsd-amd64.tar.gz
29
+ tar -xvf go $GO_VERSION .freebsd-amd64.tar.gz
27
30
28
31
# move go binary and add to path
29
32
mv go /usr/local
@@ -39,7 +42,6 @@ echo "set path=($path $GOPATH/bin)" >> ~/.tcshrc
39
42
source ~ /.tcshrc
40
43
41
44
# get the code and move into repo
42
- set REPO=github.com/cosmos/cosmos-sdk
43
45
go get $REPO
44
46
cd $GOPATH /src/$REPO
45
47
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
23
23
24
24
# create the go directory, set GOPATH, and put it on PATH
25
25
mkdir go
26
- echo " export GOPATH=/root /go" >> ~ /.profile
26
+ echo " export GOPATH=$HOME /go" >> ~ /.profile
27
27
echo " export PATH=\$ PATH:\$ GOPATH/bin" >> ~ /.profile
28
28
29
29
source ~ /.profile
You can’t perform that action at this time.
0 commit comments