diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 | 
| commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
| tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /doc/progs/run | |
| parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
| download | golang-upstream/2011.01.12.tar.gz | |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'doc/progs/run')
| -rwxr-xr-x | doc/progs/run | 12 | 
1 files changed, 5 insertions, 7 deletions
| diff --git a/doc/progs/run b/doc/progs/run index 07bc141df..29f1f8152 100755 --- a/doc/progs/run +++ b/doc/progs/run @@ -5,9 +5,7 @@  set -e -GOBIN="${GOBIN:-$HOME/bin}" - -. "$GOROOT"/src/Make.$GOARCH +eval $(gomake --no-print-directory -f ../../src/Make.inc go-env)  if [ -z "$O" ]; then  	echo 'missing $O - maybe no Make.$GOARCH?' 1>&2 @@ -34,11 +32,11 @@ for i in \  ; do  	BASE=$(basename $i .go) -	"$GOBIN"/$GC $i +	$GC $i  done  function testit { -	"$GOBIN"/$LD $1.$O +	$LD $1.$O  	x=$(echo $(./$O.out $2 2>&1))  # extra echo canonicalizes  	if [ "$x" != "$3" ]  	then @@ -47,7 +45,7 @@ function testit {  }  function testitpipe { -	"$GOBIN"/$LD $1.$O +	$LD $1.$O  	x=$(echo $(./$O.out | $2 2>&1))  # extra echo canonicalizes  	if [ "$x" != "$3" ]  	then @@ -76,7 +74,7 @@ testitpipe sieve "sed 10q" "2 3 5 7 11 13 17 19 23 29"  testitpipe sieve "sed 10q" "2 3 5 7 11 13 17 19 23 29"  # server hangs; don't run it, just compile it -"$GOBIN"/$GC server.go +$GC server.go  testit server1 "" ""  rm -f $O.out *.$O | 
