summaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2012-02-15 09:06:24 +1100
committerDavid Symonds <dsymonds@golang.org>2012-02-15 09:06:24 +1100
commitdd4d4e9e2228d256fb83577a3b3501375eca5697 (patch)
treec3d587e64680bed260eeb5a58ddaa1aa1d54c7cc /src/make.bash
parent63304eecbd5172e296b93d3299ddbb727066a19b (diff)
downloadgo-dd4d4e9e2228d256fb83577a3b3501375eca5697.tar.gz
build: create the correct $GOTOOLDIR.
Before this, make.bash --dist-tool would fail, because $GOROOT/bin/tool was being mkdir'd instead of $GOROOT/pkg/tool/linux_amd64. R=rsc CC=golang-dev http://codereview.appspot.com/5666046
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/make.bash b/src/make.bash
index 5677b7012..43183e786 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -57,7 +57,6 @@ done
echo '# Building C bootstrap tool.'
echo cmd/dist
-mkdir -p ../bin/tool
export GOROOT="$(cd .. && pwd)"
GOROOT_FINAL="${GOROOT_FINAL:-$GOROOT}"
DEFGOROOT='-DGOROOT_FINAL="'"$GOROOT_FINAL"'"'
@@ -67,6 +66,10 @@ echo
if [ "$1" = "--dist-tool" ]; then
# Stop after building dist tool.
+ mkdir -p $GOTOOLDIR
+ if [ "$2" != "" ]; then
+ cp cmd/dist/dist "$2"
+ fi
mv cmd/dist/dist $GOTOOLDIR/dist
exit 0
fi