github.com/stffabi/git-lfs@v2.3.5-0.20180214015214-8eeaa8d88902+incompatible/script/bootstrap (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  if uname -s | grep -q "_NT-"; then
     5    # Tell Cygwin / MSYS to really create symbolic links.
     6    export CYGWIN="$CYGWIN winsymlinks:nativestrict"
     7    export MSYS="$MSYS winsymlinks:nativestrict"
     8  fi
     9  
    10  if [ -z "$GOPATH" ]; then
    11    export GOPATH="$(pwd)"
    12    mkdir -p src/github.com/git-lfs
    13    [ -h src/github.com/git-lfs/git-lfs ] ||
    14      ln -s "$GOPATH" src/github.com/git-lfs/git-lfs
    15  fi
    16  
    17  if uname -s | grep -q "_NT-"; then
    18    echo "Installing goversioninfo to embed resources into Windows executables..."
    19    go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
    20    export PATH=$PATH:$GOPATH/bin/windows_386
    21    echo "Creating the resource.syso version information file..."
    22    go generate
    23  fi
    24  
    25  script/fmt
    26  rm -rf bin/*
    27  GO15VENDOREXPERIMENT=1 go run script/*.go -cmd build "$@"