diff options
author | Dave Cheney <dave@cheney.net> | 2011-03-01 09:20:32 +1100 |
---|---|---|
committer | Dave Cheney <dave@cheney.net> | 2011-03-01 09:20:32 +1100 |
commit | ddd21b4a72072ad6031384d2de3e22883edeef7e (patch) | |
tree | fd2fb562eb8c32f9d97b4d25ef5b733891ea707e /src/make.bash | |
parent | aedc333a7638a58de895b8b787b9fc46c168f72e (diff) | |
download | go-ddd21b4a72072ad6031384d2de3e22883edeef7e.tar.gz |
build: convert src/cmd to use make directly and simplify src/make.bash
R=adg, bsiegert, rsc
CC=golang-dev
http://codereview.appspot.com/4221047
Committer: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-x | src/make.bash | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/make.bash b/src/make.bash index 0cbf3becb..d9ca40d42 100755 --- a/src/make.bash +++ b/src/make.bash @@ -61,24 +61,8 @@ bash "$GOROOT"/src/clean.bash # pkg builds libcgo and the Go programs in cmd. for i in lib9 libbio libmach cmd pkg do - # The ( ) here are to preserve the current directory - # for the next round despite the cd $i below. - # set -e does not apply to ( ) so we must explicitly - # test the exit status. - ( - echo; echo; echo %%%% making $i %%%%; echo - cd "$GOROOT"/src/$i - case $i in - cmd) - bash make.bash - ;; - pkg) - gomake install - ;; - *) - gomake install - esac - ) || exit 1 + echo; echo; echo %%%% making $i %%%%; echo + gomake -C $i install done # Print post-install messages. |