git-lfs/script/bootstrap
Sebastian Schuberth 63dac507b6 Make the AppVeyor CI build work again
AppVeyor now has Go and Git for Windows 2.x installed by default. Also, we
can tell MSYS to actually create symbolic links. Finally, let the CI
create the installer, too.
2016-09-06 19:05:07 +02:00

20 lines
483 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/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 "$@"