skia2/tools/bug_chomper/run_server.sh
commit-bot@chromium.org f364521e75 Fix goauth path
BUG=skia:2551
R=scroggo@google.com

Author: borenet@google.com

Review URL: https://codereview.chromium.org/288763002

git-svn-id: http://skia.googlecode.com/svn/trunk@14737 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-05-14 16:57:49 +00:00

24 lines
587 B
Bash
Executable File

if [[ -z `which go` ]]; then
echo "Please install Go before running the server."
exit 1
fi
if [[ -z "$GOPATH" ]]; then
echo "GOPATH environment variable is not set. Please see"
echo "http://golang.org/doc/code.html#GOPATH for more information."
exit 1
fi
go get github.com/gorilla/securecookie
go get code.google.com/p/goauth2/oauth
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd $DIR
if [[ ! -f oauth_client_secret.json ]]; then
gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json .
fi
GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@