From a077ab3a31bdebba7218a39e1d6f0a0c715c8297 Mon Sep 17 00:00:00 2001 From: milisman Date: Mon, 9 May 2016 00:56:02 +0000 Subject: [PATCH] go-betikleri-eklendi --- bin/go-yukselt.sh | 14 ++++++++++++++ bin/go_ortam_ayarla.sh | 1 + 2 files changed, 15 insertions(+) create mode 100755 bin/go-yukselt.sh create mode 100644 bin/go_ortam_ayarla.sh diff --git a/bin/go-yukselt.sh b/bin/go-yukselt.sh new file mode 100755 index 000000000..05e8130c2 --- /dev/null +++ b/bin/go-yukselt.sh @@ -0,0 +1,14 @@ +#ustversion=1.6.2 +ustversion=$1 +cd /tmp +if [ ! -f go${ustversion}.src.tar.gz ];then + wget https://storage.googleapis.com/golang/go${ustversion}.src.tar.gz +fi +tar xf /sources/go${ustversion}.src.tar.gz -C . +ln -s /opt/go /$HOME/go1.4 +cd go/src/ +CGO_ENABLED=0; GOROOT_BOOTSTRAP=/opt/go +./make.bash +go version +rm /$HOME/go1.4 +cd - diff --git a/bin/go_ortam_ayarla.sh b/bin/go_ortam_ayarla.sh new file mode 100644 index 000000000..94fbcebd9 --- /dev/null +++ b/bin/go_ortam_ayarla.sh @@ -0,0 +1 @@ +cat /sources/milis.git/talimatname/genel/go/go-ortam.sh >> /etc/bashrc