]> Cypherpunks repositories - gostls13.git/commitdiff
two minor build fixes
authorRuss Cox <rsc@golang.org>
Fri, 29 Jan 2010 02:18:40 +0000 (18:18 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 29 Jan 2010 02:18:40 +0000 (18:18 -0800)
Fixes #572.
Fixes #570.

R=r
CC=golang-dev
https://golang.org/cl/194134

doc/install.html
src/cmd/gotest/gotest

index 33dacf2cfccf5ae9c5a5fff88870349cfe185315..5e2cd757f7bdcf2bba7a7000b38d38f11300dd37 100644 (file)
@@ -311,7 +311,7 @@ To update an existing tree to the latest release, you can run:
 $ cd $GOROOT/src
 $ hg pull
 $ hg update release
-$ make all
+$ ./all.bash
 </pre>
 
 <h2>Community resources</h2>
index e6e9f16f5f49e9779c033b59e3bb6f4c8e5c76e1..47662818e10d606ff17207b309207e8b5aebcf73 100755 (executable)
@@ -42,10 +42,10 @@ xarm)
 esac
 
 # Allow overrides
-GC=${_GC:-$GC}
-GL=${GL:-$LD}
-GC="$GC -I _test"
-GL="$GL -L _test"
+GC="$GOBIN/${_GC:-$GC} -I _test"
+GL="$GOBIN/${GL:-$LD} -L _test"
+CC="$GOBIN/$CC"
+LD="$GOBIN/$LD"
 export GC GL O AS CC LD
 
 gofiles=""
@@ -99,7 +99,7 @@ set -e
 "$GOBIN"/gomake testpackage-clean
 "$GOBIN"/gomake testpackage "GOTESTFILES=$gofiles"
 if $havex; then
-       "$GOBIN"/$GC -o $xofile $xgofiles
+       $GC -o $xofile $xgofiles
 fi
 
 # They all compile; now generate the code to call them.
@@ -182,6 +182,6 @@ importpath=$("$GOBIN"/gomake -s importpath)
        echo '}'
 }>_testmain.go
 
-"$GOBIN"/$GC _testmain.go
-"$GOBIN"/$GL _testmain.$O
+$GC _testmain.go
+$GL _testmain.$O
 $E ./$O.out "$@"