cmd/godoc: update GAE setup script

Change-Id: Ief2c49a03cbd3251d62d854be4f51dcb27a42458
Reviewed-on: https://go-review.googlesource.com/1522
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Oling Cat 2014-12-14 17:00:44 +08:00 committed by Andrew Gerrand
parent 458cff5230
commit 65b875be27
1 changed files with 6 additions and 6 deletions

View File

@ -33,8 +33,8 @@ getArgs() {
if [ -z $APPENGINE_SDK ]; then
error "APPENGINE_SDK environment variable not set"
fi
if [ ! -x $APPENGINE_SDK/go ]; then
error "couldn't find go comment in $APPENGINE_SDK"
if [ ! -x $APPENGINE_SDK/goapp ]; then
error "couldn't find goapp command in $APPENGINE_SDK"
fi
if [ -z $GOROOT ]; then
GOROOT=$(go env GOROOT)
@ -47,7 +47,7 @@ getArgs() {
APPDIR=$1
echo "APPDIR not set, using argument instead"
fi
# safety checks
if [ ! -d $GOROOT ]; then
error "$GOROOT is not a directory"
@ -64,7 +64,7 @@ getArgs() {
fetchGodoc() {
echo "*** Fetching godoc (if not already in GOPATH)"
unset GOBIN
go=$APPENGINE_SDK/go
go=$APPENGINE_SDK/goapp
$go get -d -tags appengine $GODOC
mkdir -p $APPDIR/$GODOC
cp $(find $($go list -f '{{.Dir}}' $GODOC) -type f -depth 1) $APPDIR/$GODOC/
@ -76,7 +76,7 @@ makeAppYaml() {
application: godoc
version: 1
runtime: go
api_version: go1
api_version: go1.4beta
handlers:
- url: /.*
@ -105,7 +105,7 @@ makeConfigfile() {
package main
// GENERATED FILE - DO NOT MODIFY BY HAND.
// (generated by $GOROOT/src/cmd/godoc/setup-godoc-app.bash)
// (generated by golang.org/x/tools/cmd/godoc/setup-godoc-app.bash)
const (
// .zip filename