bump version to 1.7.4
This commit is contained in:
parent
3a4a2177da
commit
c1e94f8fa4
1 changed files with 12 additions and 10 deletions
22
build-go.sh
22
build-go.sh
|
|
@ -11,7 +11,7 @@ GITHUB="https://github.com/golang/go/archive/"
|
||||||
V14="go1.4.3"
|
V14="go1.4.3"
|
||||||
TGZ14="${V14}.tar.gz"
|
TGZ14="${V14}.tar.gz"
|
||||||
|
|
||||||
Vnew="go1.7.3"
|
Vnew="go1.7.4"
|
||||||
TGZnew="${Vnew}.tar.gz"
|
TGZnew="${Vnew}.tar.gz"
|
||||||
|
|
||||||
INSTALL="/usr/local"
|
INSTALL="/usr/local"
|
||||||
|
|
@ -49,15 +49,17 @@ rm -rf go
|
||||||
mv ${Vnew} go
|
mv ${Vnew} go
|
||||||
ln -s /usr/local/go /usr/local/go${Vnew}
|
ln -s /usr/local/go /usr/local/go${Vnew}
|
||||||
|
|
||||||
export GOROOT="${INSTALL}/go"
|
export GOROOT=${INSTALL}/go
|
||||||
export PATH="${PATH}:${GOROOT}/bin"
|
export PATH=${PATH}:${GOROOT}/bin:~/go/bin
|
||||||
|
|
||||||
echo "add this to your .bashrc/.profile:"
|
cat <<EOF
|
||||||
echo ""
|
add this to your .bashrc/.profile:
|
||||||
echo "export CGO_ENABLED=0"
|
|
||||||
echo "export GOPATH=~/go"
|
export CGO_ENABLED=${CGO_ENABLED}
|
||||||
echo "export GOROOT=/usr/local/go"
|
export GOPATH=~/go
|
||||||
echo "export PATH=\${PATH}:${GOROOT}/bin:~/go/bin"
|
export GOROOT=${GOROOT}
|
||||||
echo ""
|
export PATH=\${PATH}:${GOROOT}:~/go/bin
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
go version
|
go version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue