buildtools.sh: inherit $UTILITIES if defined

This commit is contained in:
Giacomo Tesio 2015-12-23 00:29:52 +01:00
parent ab6ec669ba
commit f62c23db18
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#!/bin/sh
cd `dirname $0`
UTILITIES=`pwd`
if [ -z "$UTILITIES" ]; then
UTILITIES=`pwd`
fi
git clean -x -d -f $UTILITIES
echo -n Building development tools...
GOBIN="$UTILITIES/bin" GOPATH="$UTILITIES/third_party:$UTILITIES" go get -d jehanne/cmd/...