diff --git a/scripts/install/install_sdk_arm.sh b/scripts/install/install_sdk_arm.sh new file mode 100644 index 0000000000..24caa51f23 --- /dev/null +++ b/scripts/install/install_sdk_arm.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +# change this to a specific release or branch +BRANCH=master +REPO=github.com/cosmos/cosmos-sdk + +GO_VERSION=1.11.2 + +sudo apt-get update -y +sudo apt-get upgrade -y +sudo apt-get install -y make + +# get and unpack golang +curl -O https://dl.google.com/go/go$GO_VERSION.linux-armv6l.tar.gz +tar -xvf go$GO_VERSION.linux-armv6l.tar.gz + +# move go binary and add to path +sudo mv go /usr/local +echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile + +# create the go directory, set GOPATH, and put it on PATH +mkdir go +echo "export GOPATH=$HOME/go" >> ~/.profile +echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile + +source ~/.profile + +# get the code and move into repo +go get $REPO +cd $GOPATH/src/$REPO + +# build & install master +git checkout $BRANCH +LEDGER_ENABLED=false make get_tools +LEDGER_ENABLED=false make get_vendor_deps +LEDGER_ENABLED=false make install + +source ~/.profile diff --git a/scripts/install_sdk_bsd.sh b/scripts/install/install_sdk_bsd.sh similarity index 88% rename from scripts/install_sdk_bsd.sh rename to scripts/install/install_sdk_bsd.sh index 5bff970e64..df416dca90 100644 --- a/scripts/install_sdk_bsd.sh +++ b/scripts/install/install_sdk_bsd.sh @@ -14,6 +14,9 @@ # change this to a specific release or branch set BRANCH=master +set REPO=github.com/cosmos/cosmos-sdk + +set GO_VERSION=1.11.2 sudo pkg update @@ -22,8 +25,8 @@ sudo pkg install -y gmake sudo pkg install -y git # get and unpack golang -curl -O https://storage.googleapis.com/golang/go1.10.freebsd-amd64.tar.gz -tar -xvf go1.10.freebsd-amd64.tar.gz +curl -O https://storage.googleapis.com/golang/go$GO_VERSION.freebsd-amd64.tar.gz +tar -xvf go$GO_VERSION.freebsd-amd64.tar.gz # move go binary and add to path mv go /usr/local @@ -39,7 +42,6 @@ echo "set path=($path $GOPATH/bin)" >> ~/.tcshrc source ~/.tcshrc # get the code and move into repo -set REPO=github.com/cosmos/cosmos-sdk go get $REPO cd $GOPATH/src/$REPO diff --git a/scripts/install_sdk_ubuntu.sh b/scripts/install/install_sdk_ubuntu.sh similarity index 95% rename from scripts/install_sdk_ubuntu.sh rename to scripts/install/install_sdk_ubuntu.sh index 76ae4e390b..264599960e 100644 --- a/scripts/install_sdk_ubuntu.sh +++ b/scripts/install/install_sdk_ubuntu.sh @@ -23,7 +23,7 @@ echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile # create the go directory, set GOPATH, and put it on PATH mkdir go -echo "export GOPATH=/root/go" >> ~/.profile +echo "export GOPATH=$HOME/go" >> ~/.profile echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile source ~/.profile