2015-07-30 02:37:31 +00:00
|
|
|
#!/usr/bin/env bash
|
2015-07-03 09:17:08 +00:00
|
|
|
set -e
|
2013-10-04 16:32:25 +00:00
|
|
|
|
2015-07-05 19:53:50 +00:00
|
|
|
# Only set GOPATH on non-Windows platforms as Windows can't do the symlinking
|
|
|
|
# that we need.
|
2015-07-07 14:48:38 +00:00
|
|
|
if [ -z "$GOPATH" ] && uname -s | grep -vq "_NT-"; then
|
2015-07-03 09:19:13 +00:00
|
|
|
export GOPATH="$(pwd)"
|
|
|
|
mkdir -p src/github.com/github
|
|
|
|
[ -h src/github.com/github/git-lfs ] ||
|
|
|
|
ln -s "$GOPATH" src/github.com/github/git-lfs
|
|
|
|
fi
|
|
|
|
|
2014-04-16 21:11:52 +00:00
|
|
|
script/fmt
|
2015-07-03 09:17:40 +00:00
|
|
|
rm -rf bin/*
|
2016-05-23 21:03:25 +00:00
|
|
|
GO15VENDOREXPERIMENT=1 go run script/*.go -cmd build "$@"
|