20 lines
486 B
Bash
Executable File
20 lines
486 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if uname -s | grep -q "_NT-"; then
|
|
# Tell Cygwin / MSYS to really create symbolic links.
|
|
export CYGWIN="$CYGWIN winsymlinks:nativestrict"
|
|
export MSYS="$MSYS winsymlinks:nativestrict"
|
|
fi
|
|
|
|
if [ -z "$GOPATH" ]; then
|
|
export GOPATH="$(pwd)"
|
|
mkdir -p src/github.com/git-lfs
|
|
[ -h src/github.com/git-lfs/git-lfs ] ||
|
|
ln -s "$GOPATH" src/github.com/git-lfs/git-lfs
|
|
fi
|
|
|
|
script/fmt
|
|
rm -rf bin/*
|
|
GO15VENDOREXPERIMENT=1 go run script/*.go -cmd build "$@"
|