2012-05-01 23:32:46 -06:00
|
|
|
#!/bin/rc -e
|
|
|
|
# Copyright 2012 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2013-02-26 10:25:46 -07:00
|
|
|
rfork e
|
|
|
|
|
2020-03-17 08:22:39 -06:00
|
|
|
if(! test -f ../bin/go){
|
|
|
|
echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2]
|
|
|
|
exit wrongdir
|
|
|
|
}
|
|
|
|
|
2022-04-05 12:25:34 -06:00
|
|
|
eval `{../bin/go tool dist env}
|
2013-02-26 10:25:46 -07:00
|
|
|
|
2021-01-26 19:14:43 -07:00
|
|
|
GOPATH=/nonexist-gopath
|
2020-03-17 08:22:39 -06:00
|
|
|
exec ../bin/go tool dist test -rebuild $*
|