summaryrefslogtreecommitdiff
path: root/script/build-libgit2.sh
diff options
context:
space:
mode:
authorAidan Nulman <[email protected]>2014-04-03 16:41:43 -0400
committerAidan Nulman <[email protected]>2014-04-03 16:41:43 -0400
commitd9f4adff6c548a6cb6f00258c99129c7e41062b3 (patch)
tree264a73dcf05f99cec7395b20b3488ea202c3cadf /script/build-libgit2.sh
parentb5e60dc106828b308fdb7e69fe10a0d2dec4eece (diff)
parent9cd1d129bcd567ef65137783a603f8d898d8d933 (diff)
Merge branch 'master' into custom_odb
Conflicts: odb.go wrapper.c
Diffstat (limited to 'script/build-libgit2.sh')
-rwxr-xr-xscript/build-libgit2.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh
new file mode 100755
index 0000000..8376a15
--- /dev/null
+++ b/script/build-libgit2.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -ex
+
+git clone --depth 1 --single-branch git://github.com/libgit2/libgit2 libgit2
+
+cd libgit2
+cmake -DTHREADSAFE=ON \
+ -DBUILD_CLAR=OFF \
+ -DCMAKE_INSTALL_PREFIX=$PWD/install \
+ .
+
+make install