build.sh 302 Bytes
# !/bin/bash
export GOPATH="/home/www/gopath:/home/code/go/apigame"

codedir=/home/code/go/apigame/src

cd ${codedir}
if [ $? -ne 0 ];then
   echo "cd ${codedir} error"
   exit 3
fi
go build
if [ $? -ne 0 ]; then
   echo "go build $codedir error"
   exit 3
fi
echo "go build $codedir is ok...."
exit 0