blob: daa6598beb26436ca30b33968c7760787046d82f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/bash
pushd ../../../../external/libgit2/
LIBGIT2SHA=`cat ../libgit-binary/libgit2_hash.txt`
SHORTSHA=${LIBGIT2SHA:0:7}
if [[ -d build ]]
then
pushd build
if [[ -n $(ls libgit2-${SHORTSHA}.*) ]]
then
exit 0
else
popd
rm -rf build
fi
fi
mkdir build
pushd build
cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DTHREADSAFE:BOOL=ON \
-DBUILD_CLAR:BOOL=OFF \
-DUSE_SSH=ON \
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
-DCMAKE_SKIP_RPATH=TRUE \
..
cmake --build .
popd
popd
|