git-lfs/script/bootstrap

16 lines
381 B
Plaintext
Raw Normal View History

2014-04-16 21:11:52 +00:00
#!/bin/sh
set -e
2013-10-04 16:32:25 +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
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
rm -rf bin/*
2015-05-25 18:30:14 +00:00
go run script/*.go -cmd build "$@"