github.com/slayercat/go@v0.0.0-20170428012452-c51559813f61/src/all.bash (about)

     1  #!/usr/bin/env bash
     2  # Copyright 2009 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  set -e
     7  if [ ! -f make.bash ]; then
     8  	echo 'all.bash must be run from $GOROOT/src' 1>&2
     9  	exit 1
    10  fi
    11  if [ ! -f cmd/api/run.go ]; then
    12  	echo 'all.bash cannot be run from a binary download package' 1>&2
    13  	exit 1
    14  fi
    15  OLDPATH="$PATH"
    16  . ./make.bash "$@" --no-banner
    17  bash run.bash --no-rebuild
    18  PATH="$OLDPATH"
    19  $GOTOOLDIR/dist banner  # print build info