From a067450a1fb8a60e1f1d3a7a7ca67120f567e7cb Mon Sep 17 00:00:00 2001 From: "Devon H. O'Dell" Date: Fri, 11 Dec 2009 15:14:09 -0800 Subject: Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/src This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox --- misc/cgo/stdio/test.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'misc/cgo/stdio/test.bash') diff --git a/misc/cgo/stdio/test.bash b/misc/cgo/stdio/test.bash index 82e3f7b45..b8b5f6911 100755 --- a/misc/cgo/stdio/test.bash +++ b/misc/cgo/stdio/test.bash @@ -4,7 +4,8 @@ # license that can be found in the LICENSE file. set -e -gomake hello fib chain +GOBIN="${GOBIN:-$HOME/bin}" +"$GOBIN"/gomake hello fib chain echo '*' hello >run.out ./hello >>run.out echo '*' fib >>run.out @@ -12,4 +13,4 @@ echo '*' fib >>run.out echo '*' chain >>run.out ./chain >>run.out diff run.out golden.out -gomake clean +"$GOBIN"/gomake clean -- cgit v1.2.3