go-yukselt.sh 328 B

123456789101112131415
  1. #ustversion=1.6.2
  2. ustversion=$1
  3. cd /tmp
  4. if [ ! -f go${ustversion}.src.tar.gz ];then
  5. wget https://storage.googleapis.com/golang/go${ustversion}.src.tar.gz
  6. fi
  7. tar xf /sources/go${ustversion}.src.tar.gz -C .
  8. ln -s /opt/go /$HOME/go1.4
  9. cd go/src/
  10. CGO_ENABLED=0; GOROOT_BOOTSTRAP=/opt/go
  11. ./make.bash
  12. go version
  13. rm /$HOME/go1.4
  14. cd -