go1.6 + ssh script bsd support

This commit is contained in:
ston1th 2016-03-04 19:24:01 +01:00
commit 157885902b
2 changed files with 44 additions and 26 deletions

View file

@ -11,7 +11,7 @@ GITHUB="https://github.com/golang/go/archive/"
V14="go1.4.3"
TGZ14="${V14}.tar.gz"
Vnew="go1.5.2"
Vnew="go1.6"
TGZnew="${Vnew}.tar.gz"
INSTALL="/usr/local"
@ -36,9 +36,9 @@ cd ${INSTALL}/${V14}/src
export GOROOT_BOOTSTRAP=${INSTALL}/${V14}
if [ "$(uname -m)" == "x86_64" ]; then
export GOARCH=386
else
export GOARCH=amd64
else
export GOARCH=386
fi
cd ${INSTALL}/${Vnew}/src
@ -57,7 +57,7 @@ echo ""
echo "export CGO_ENABLED=0"
echo "export GOPATH=~/go"
echo "export GOROOT=/usr/local/go"
echo "export PATH=\${PATH}:${GOROOT}"
echo "export PATH=\${PATH}:${GOROOT}/bin:~/go/bin"
echo ""
go version