Colin Cross | 7bb052a | 2015-02-03 12:59:37 -0800 | [diff] [blame] | 1 | #!/bin/rc -e |
| 2 | # Copyright 2012 The Go Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style |
| 4 | # license that can be found in the LICENSE file. |
| 5 | |
| 6 | rfork e |
| 7 | |
Patrice Arruda | 7f4776e | 2020-06-25 11:55:41 -0700 | [diff] [blame] | 8 | if(! test -f ../bin/go){ |
| 9 | echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2] |
| 10 | exit wrongdir |
| 11 | } |
| 12 | |
Dan Willemsen | b8ef64a | 2023-04-04 01:48:15 -0400 | [diff] [blame^] | 13 | GOENV=off |
Dan Willemsen | 1cbb82a | 2022-08-08 23:13:50 -0700 | [diff] [blame] | 14 | eval `{../bin/go tool dist env} |
Colin Cross | 7bb052a | 2015-02-03 12:59:37 -0800 | [diff] [blame] | 15 | |
Colin Cross | 846c316 | 2021-05-14 11:11:40 -0700 | [diff] [blame] | 16 | GOPATH=/nonexist-gopath |
Patrice Arruda | 7f4776e | 2020-06-25 11:55:41 -0700 | [diff] [blame] | 17 | exec ../bin/go tool dist test -rebuild $* |