summaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2011-03-01 09:20:32 +1100
committerDave Cheney <dave@cheney.net>2011-03-01 09:20:32 +1100
commitddd21b4a72072ad6031384d2de3e22883edeef7e (patch)
treefd2fb562eb8c32f9d97b4d25ef5b733891ea707e /src/make.bash
parentaedc333a7638a58de895b8b787b9fc46c168f72e (diff)
downloadgo-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-xsrc/make.bash20
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.