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:
parent
458cff5230
commit
65b875be27
|
@ -33,8 +33,8 @@ getArgs() {
|
||||||
if [ -z $APPENGINE_SDK ]; then
|
if [ -z $APPENGINE_SDK ]; then
|
||||||
error "APPENGINE_SDK environment variable not set"
|
error "APPENGINE_SDK environment variable not set"
|
||||||
fi
|
fi
|
||||||
if [ ! -x $APPENGINE_SDK/go ]; then
|
if [ ! -x $APPENGINE_SDK/goapp ]; then
|
||||||
error "couldn't find go comment in $APPENGINE_SDK"
|
error "couldn't find goapp command in $APPENGINE_SDK"
|
||||||
fi
|
fi
|
||||||
if [ -z $GOROOT ]; then
|
if [ -z $GOROOT ]; then
|
||||||
GOROOT=$(go env GOROOT)
|
GOROOT=$(go env GOROOT)
|
||||||
|
@ -64,7 +64,7 @@ getArgs() {
|
||||||
fetchGodoc() {
|
fetchGodoc() {
|
||||||
echo "*** Fetching godoc (if not already in GOPATH)"
|
echo "*** Fetching godoc (if not already in GOPATH)"
|
||||||
unset GOBIN
|
unset GOBIN
|
||||||
go=$APPENGINE_SDK/go
|
go=$APPENGINE_SDK/goapp
|
||||||
$go get -d -tags appengine $GODOC
|
$go get -d -tags appengine $GODOC
|
||||||
mkdir -p $APPDIR/$GODOC
|
mkdir -p $APPDIR/$GODOC
|
||||||
cp $(find $($go list -f '{{.Dir}}' $GODOC) -type f -depth 1) $APPDIR/$GODOC/
|
cp $(find $($go list -f '{{.Dir}}' $GODOC) -type f -depth 1) $APPDIR/$GODOC/
|
||||||
|
@ -76,7 +76,7 @@ makeAppYaml() {
|
||||||
application: godoc
|
application: godoc
|
||||||
version: 1
|
version: 1
|
||||||
runtime: go
|
runtime: go
|
||||||
api_version: go1
|
api_version: go1.4beta
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- url: /.*
|
- url: /.*
|
||||||
|
@ -105,7 +105,7 @@ makeConfigfile() {
|
||||||
package main
|
package main
|
||||||
|
|
||||||
// GENERATED FILE - DO NOT MODIFY BY HAND.
|
// 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 (
|
const (
|
||||||
// .zip filename
|
// .zip filename
|
||||||
|
|
Loading…
Reference in New Issue