Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 if [[ -z `which go` ]]; then | 1 if [[ -z `which go` ]]; then |
| 2 echo "Please install Go before running the server." | 2 echo "Please install Go before running the server." |
| 3 exit 1 | 3 exit 1 |
| 4 fi | 4 fi |
| 5 | 5 |
| 6 if [[ -z "$GOPATH" ]]; then | |
| 7 echo "GOPATH environment variable is not set. Please see http://golang.org/doc /code.html#GOPATH for more information." | |
|
scroggo
2014/05/14 15:04:49
nit: more than 100 chars.
Do we have guidelines f
borenet
2014/05/14 15:35:12
Line length is 80chars according to https://google
| |
| 8 exit 1 | |
| 9 fi | |
| 10 | |
| 6 go get github.com/gorilla/securecookie | 11 go get github.com/gorilla/securecookie |
| 12 go get code.google.com/p/goauth2 | |
| 7 | 13 |
| 8 DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | 14 DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| 9 cd $DIR | 15 cd $DIR |
| 10 | 16 |
| 11 if [[ ! -f oauth_client_secret.json ]]; then | 17 if [[ ! -f oauth_client_secret.json ]]; then |
| 12 gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json . | 18 gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json . |
| 13 fi | 19 fi |
| 14 | 20 |
| 15 GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@ | 21 GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@ |
| 16 | 22 |
| OLD | NEW |