cmd/godoc: make setup-godoc-app.bash more portable
Unlike in BSD, in GNU/Linux find option for -depth is without an argument. To make the command compatible in both system, use -mindepth and -maxdepth arguments. Change-Id: Ie82736fd2c28b6fe0f64dbfc7272f0e0f0d8e8df Reviewed-on: https://go-review.googlesource.com/15014 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
6b41c776c8
commit
2b5f3dc0de
|
@ -67,7 +67,7 @@ fetchGodoc() {
|
||||||
go=$APPENGINE_SDK/goapp
|
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) -mindepth 1 -maxdepth 1 -type f) $APPDIR/$GODOC/
|
||||||
}
|
}
|
||||||
|
|
||||||
makeAppYaml() {
|
makeAppYaml() {
|
||||||
|
|
Loading…
Reference in New Issue