aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2011-03-01 09:20:32 +1100
committerAndrew Gerrand <adg@golang.org>2011-03-01 09:20:32 +1100
commit432b4f309b9d2c82c72a18b917cdccb4ec2bd89f (patch)
tree24c73d68b446daf0689983e530dd04b3623a69ad /src/make.bash
parent7da86983a8619df20e61531159d6e2f7f1f628bf (diff)
downloadgo-432b4f309b9d2c82c72a18b917cdccb4ec2bd89f.tar.xz
build: convert src/cmd to use make directly and simplify src/make.bash
R=adg, bsiegert, rsc CC=golang-dev https://golang.org/cl/4221047
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/make.bash b/src/make.bash
index 0cbf3becb4..d9ca40d427 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.