diff options
| author | lhchavez <[email protected]> | 2019-01-08 02:51:21 +0000 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2019-01-08 02:51:21 +0000 |
| commit | 6d67bde74a667dcdd060ef519832e8fd81064a8e (patch) | |
| tree | 705e564b9dedf0ceced47e6f01012cb9fcb6322f /script | |
| parent | 35518c78df9ae727651212512bfaa1a8dae02585 (diff) | |
| parent | 2609f4c6f25a7da56e2e4960c250ea3dfb53e82b (diff) | |
Merge remote-tracking branch 'upstream/master' into repository-create_commit_from_ids
Diffstat (limited to 'script')
| -rwxr-xr-x | script/build-libgit2-static.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/script/build-libgit2-static.sh b/script/build-libgit2-static.sh index 5723721..680dd93 100755 --- a/script/build-libgit2-static.sh +++ b/script/build-libgit2-static.sh @@ -2,18 +2,19 @@ set -ex -VENDORED_PATH=vendor/libgit2 +ROOT="$(cd "$0/../.." && echo "${PWD}")" +BUILD_PATH="${ROOT}/static-build" +VENDORED_PATH="${ROOT}/vendor/libgit2" -cd $VENDORED_PATH && -mkdir -p install/lib && -mkdir -p build && -cd build && +mkdir -p "${BUILD_PATH}/build" "${BUILD_PATH}/install/lib" + +cd "${BUILD_PATH}/build" && cmake -DTHREADSAFE=ON \ -DBUILD_CLAR=OFF \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_C_FLAGS=-fPIC \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ - -DCMAKE_INSTALL_PREFIX=../install \ - .. && + -DCMAKE_INSTALL_PREFIX="${BUILD_PATH}/install" \ + "${VENDORED_PATH}" && -cmake --build . +cmake --build . --target install |
