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:
Mhd Sulhan 2015-09-26 20:44:38 +07:00 committed by Brad Fitzpatrick
parent 6b41c776c8
commit 2b5f3dc0de
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ fetchGodoc() {
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/
cp $(find $($go list -f '{{.Dir}}' $GODOC) -mindepth 1 -maxdepth 1 -type f) $APPDIR/$GODOC/
}
makeAppYaml() {