github.com/akaros/go-akaros@v0.0.0-20181004170632-85005d477eab/src/clean.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  
     8  eval $(go tool dist env)
     9  
    10  if [ ! -x $GOTOOLDIR/dist ]; then
    11  	echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2
    12  	exit 1
    13  fi
    14  
    15  "$GOBIN/go" clean -i std
    16  $GOTOOLDIR/dist clean