diff options
author | Russ Cox <rsc@golang.org> | 2012-02-15 11:48:17 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-15 11:48:17 -0500 |
commit | 500e6510f925c96bf5d160c95f2473da87db1986 (patch) | |
tree | 4308d8bc2041cc57b93054449ac17b6946aa2aff /src/make.bash | |
parent | 8af319d6fb486d2472934be4515e83487d634fd8 (diff) | |
download | go-500e6510f925c96bf5d160c95f2473da87db1986.tar.gz |
build: add make.bash --no-clean option
Makes it possible to run
GOARCH=amd64 make.bash
GOARCH=386 make.bash --no-clean
to avoid deleting some of the work done by the first one.
R=golang-dev
CC=golang-dev
http://codereview.appspot.com/5673056
Diffstat (limited to 'src/make.bash')
-rwxr-xr-x | src/make.bash | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/make.bash b/src/make.bash index 43183e786..cb7051bab 100755 --- a/src/make.bash +++ b/src/make.bash @@ -75,8 +75,12 @@ if [ "$1" = "--dist-tool" ]; then fi echo "# Building compilers and Go bootstrap tool for host, $GOHOSTOS/$GOHOSTARCH." -./cmd/dist/dist bootstrap -a -v # builds go_bootstrap -# Delay move of dist tool to now, because bootstrap cleared tool directory. +buildall="-a" +if [ "$1" = "--no-clean" ]; then + buildall="" +fi +./cmd/dist/dist bootstrap $buildall -v # builds go_bootstrap +# Delay move of dist tool to now, because bootstrap may clear tool directory. mv cmd/dist/dist $GOTOOLDIR/dist $GOTOOLDIR/go_bootstrap clean -i std echo |