This commit is contained in:
Mike Solomon 2013-04-05 17:55:22 -07:00
Родитель 23d8fa89e0
Коммит aea84a9dcd
1 изменённых файлов: 10 добавлений и 8 удалений

18
dev.env
Просмотреть файл

@ -11,14 +11,6 @@ fi
export GOTOP=$VTTOP/go
export PYTOP=$VTTOP/py
# GO ROOT sanity
go_bin=`which go`
go_env=`go env | grep GOROOT | cut -f 2 -d\"`
if [ "$go_bin" != "$go_env/bin/go" ]; then
echo "WARNING: \$GOROOT may not compatible with the used go binary"
echo "Please make sure 'go' comes from \$GOROOT/bin"
fi
function prepend_path()
{
# $1 path variable
@ -45,6 +37,16 @@ if [ "$GOBIN" ]; then
export PATH=$(prepend_path $PATH $GOBIN)
fi
# GOROOT sanity
go_bin=`which go`
go_env=`go env | grep GOROOT | cut -f 2 -d\"`
if [ "$go_bin" -a "$go_bin" != "$go_env/bin/go" ]; then
echo "WARNING: \$GOROOT may not compatible with the used go binary"
echo "Please make sure 'go' comes from \$GOROOT/bin"
echo "go_env: $go_env"
echo "go_bin: $go_bin"
fi
# mysql install location. Please set based on your environment.
# Build will not work if this is incorrect.