16 lines
414 B
Bash
Executable File
16 lines
414 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Only set GOPATH on non-Windows platforms as Windows can't do the symlinking
|
|
# that we need.
|
|
if [ -z "$GOPATH" ] && uname -s | grep -vq "_NT-"; then
|
|
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
|
|
|
|
script/fmt
|
|
rm -rf bin/*
|
|
GO15VENDOREXPERIMENT=1 go run script/*.go -cmd build "$@"
|