git2go/script
Suhaib Mujahid 0a8255c206 Enable set the VENDORED_PATH for libgit2 (#650)
### What this change is doing?
This change aims to enable us to set the `VENDORED_PATH` as an environment variable and failback to the default value if the environment variable is not set. Thus, this change should not break current behavior.

### Why we need this?
This will enable using the script to build libgit2 form source code downloaded manually.

Example:
```sh
LIBGIT2_VER="1.0.1"
DOWNLOAD_URL="https://codeload.github.com/libgit2/libgit2/tar.gz/v${LIBGIT2_VER}""
LIBGIT2_PATH="${HOME}/libgit2-${LIBGIT2_VER}"
wget -O "${LIBGIT2_PATH}.tar.gz" "$DOWNLOAD_URL"
tar -xzvf "${LIBGIT2_PATH}.tar.gz"

VENDORED_PATH=$LIBGIT2_PATH sh ./script/build-libgit2.sh --static
```

(cherry picked from commit f3a746d7b6)
2020-09-30 23:58:04 +00:00
..
build-libgit2-dynamic.sh Update CI configuration 2020-08-16 07:19:09 -07:00
build-libgit2-static.sh Update CI configuration 2020-08-16 07:19:09 -07:00
build-libgit2.sh Enable set the VENDORED_PATH for libgit2 (#650) 2020-09-30 23:58:04 +00:00
check-MakeGitError-thread-lock.go Avoid installing script binary to user's $GOPATH/bin. 2015-04-16 18:45:53 -07:00
install-libgit2.sh Update libgit2 version to install on Travis to 24 2016-03-07 11:33:44 +01:00