]> Cypherpunks.ru repositories - gostls13.git/blob - src/clean.bash
build: fix clean.bash
[gostls13.git] / src / clean.bash
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