aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-10-28 09:00:35 -0400
committerRuss Cox <rsc@golang.org>2017-10-31 13:48:53 +0000
commitc1e026a5f6f24b4638740f0a602119d22c2c5fef (patch)
tree6d5408329f62516829ca0bd5c59f5b3164301f2b /src/make.bash
parent84dc501d202194b7b166de8371161a6222025b01 (diff)
downloadgo-c1e026a5f6f24b4638740f0a602119d22c2c5fef.tar.gz
go-c1e026a5f6f24b4638740f0a602119d22c2c5fef.zip
build: quiet make.bash, make.bat, make.rc
The signal-to-noise ratio is too low. Stop printing the name of every package. Can still get the old output with make.bash -v. Change-Id: Ib2c82e037166e6d2ddc31ae2a4d29af5becce574 Reviewed-on: https://go-review.googlesource.com/74351 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/make.bash b/src/make.bash
index 9827abd331..f3614f8e5b 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -125,10 +125,20 @@ rm -f ./runtime/runtime_defs.go
# Finally! Run the build.
-echo '##### Building Go bootstrap tool.'
-echo cmd/dist
-export GOROOT="$(cd .. && pwd)"
+verbose=false
+vflag=""
+if [ "$1" = "-v" ]; then
+ verbose=true
+ vflag=-v
+ shift
+fi
+
export GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:-$HOME/go1.4}
+echo "Building Go cmd/dist using $GOROOT_BOOTSTRAP."
+if $verbose; then
+ echo cmd/dist
+fi
+export GOROOT="$(cd .. && pwd)"
for go_exe in $(type -ap go); do
if [ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]; then
goroot=$(GOROOT='' $go_exe env GOROOT)
@@ -156,7 +166,9 @@ if [ "$FAIL" = true ]; then
exit 1
fi
-echo
+if $verbose; then
+ echo
+fi
if [ "$1" = "--dist-tool" ]; then
# Stop after building dist tool.
@@ -177,7 +189,7 @@ fi
# Run dist bootstrap to complete make.bash.
# Bootstrap installs a proper cmd/dist, built with the new toolchain.
# Throw ours, built with Go 1.4, away after bootstrap.
-./cmd/dist/dist bootstrap $buildall -v $GO_DISTFLAGS "$@"
+./cmd/dist/dist bootstrap $buildall $vflag $GO_DISTFLAGS "$@"
rm -f ./cmd/dist/dist
# DO NOT ADD ANY NEW CODE HERE.