cmd/godoc: update GAE setup script
Change-Id: Ief2c49a03cbd3251d62d854be4f51dcb27a42458
Reviewed-on: https://go-review.googlesource.com/1522
Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/cmd/godoc/setup-godoc-app.bash b/cmd/godoc/setup-godoc-app.bash
index 284df8b..9d82cd7 100755
--- a/cmd/godoc/setup-godoc-app.bash
+++ b/cmd/godoc/setup-godoc-app.bash
@@ -33,8 +33,8 @@
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 @@
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 @@
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 @@
application: godoc
version: 1
runtime: go
-api_version: go1
+api_version: go1.4beta
handlers:
- url: /.*
@@ -105,7 +105,7 @@
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