4e97d8b836
See https://github.com/libgit2/libgit2sharp/commit/96df5f8d6d3e35f8aadafdc25a95ede3eb9e86b5
31 lines
639 B
Bash
Executable File
31 lines
639 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
if ! git submodule update --init --recursive
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
git submodule foreach --recursive git clean -f -x -d
|
|
|
|
LIBGIT2SHA=`cat lib/libgit2sharp/LibGit2Sharp/libgit2_hash.txt`
|
|
SHORTSHA=`echo $LIBGIT2SHA | cut -c 1-7`
|
|
|
|
mkdir lib/libgit2sharp/cmake-build
|
|
cd lib/libgit2sharp/cmake-build
|
|
if ! cmake -DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./libgit2-bin -DSONAME_APPEND=$SHORTSHA ../libgit2
|
|
then
|
|
exit 2
|
|
fi
|
|
if ! cmake --build . --target install
|
|
then
|
|
exit 3
|
|
fi
|
|
|
|
export LD_LIBRARY_PATH=$PWD/libgit2-bin/lib
|
|
|
|
cd ../../..
|
|
if ! xbuild CI.proj
|
|
then
|
|
exit 5
|
|
fi
|