2011-02-03 18:47:56 +01:00
|
|
|
# go toolchain env paths
|
|
|
|
gopath=lib
|
|
|
|
arch=386
|
|
|
|
if [ -x /usr/lib64/go ] ; then
|
|
|
|
gopath=lib64
|
|
|
|
arch=amd64
|
|
|
|
fi
|
|
|
|
|
|
|
|
export GOOS="linux"
|
|
|
|
export GOARCH=$arch
|
|
|
|
export GOROOT=/usr/$gopath/go
|
|
|
|
export GOBIN=/usr/bin
|
2011-12-24 10:52:49 +01:00
|
|
|
|
|
|
|
if [ `id -u` != 0 ]; then
|
2012-01-25 04:57:43 +01:00
|
|
|
export GOPATH=$HOME/go
|
2011-12-24 10:52:49 +01:00
|
|
|
fi
|