File tree 1 file changed +16
-15
lines changed 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- PREVIOUS_LD=$LD_LIBRARY_PATH
4
-
5
3
LIBGIT2SHA=` cat ./LibGit2Sharp/libgit2_hash.txt`
6
4
SHORTSHA=${LIBGIT2SHA: 0: 7}
7
5
8
- rm -rf cmake-build
9
- mkdir cmake-build && cd cmake-build
6
+ rm -rf libgit2/build
7
+ mkdir libgit2/build
8
+ pushd libgit2/build
9
+ export _BINPATH=` pwd`
10
10
11
- cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DTHREADSAFE:BOOL=ON -DBUILD_CLAR:BOOL=OFF -DCMAKE_INSTALL_PREFIX=./libgit2-bin -DLIBGIT2_FILENAME=git2-$SHORTSHA ../libgit2
12
- cmake --build . --target install
11
+ cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
12
+ -DTHREADSAFE:BOOL=ON \
13
+ -DBUILD_CLAR:BOOL=OFF \
14
+ -DLIBGIT2_FILENAME=git2-$SHORTSHA \
15
+ -DCMAKE_OSX_ARCHITECTURES=" i386;x86_64" \
16
+ ..
17
+ cmake --build .
13
18
14
- LD_LIBRARY_PATH=$PWD /libgit2-bin/lib :$LD_LIBRARY_PATH
15
- export LD_LIBRARY_PATH
19
+ export LD_LIBRARY_PATH=$_BINPATH :$LD_LIBRARY_PATH
20
+ export DYLD_LIBRARY_PATH= $_BINPATH : $DYLD_LIBRARY_PATH
16
21
17
- cd ..
22
+ popd
18
23
24
+ echo $DYLD_LIBRARY_PATH
19
25
echo $LD_LIBRARY_PATH
20
26
xbuild CI-build.msbuild /t:Deploy
21
27
22
- EXIT_CODE=$?
23
-
24
- LD_LIBRARY_PATH=$PREVIOUS_LD
25
- export LD_LIBRARY_PATH
26
-
27
- exit $EXIT_CODE
28
+ exit $?
You can’t perform that action at this time.
0 commit comments