Skip to content

Commit ffe5099

Browse files
authored
Merge pull request #21 from gitx/BuildAlwaysLibgit2
Build always libgit2 in update script
2 parents 6127ffd + 24a8005 commit ffe5099

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

script/update_libgit2

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ set -e
77
# ~/.MacOSX/environment.plist
88
PATH="/usr/local/bin:$PATH"
99

10-
if [ "External/libgit2.a" -nt "External/libgit2" ]
11-
then
12-
echo "No update needed."
13-
exit 0
14-
fi
15-
1610
cd "External/libgit2"
1711

1812
if [ -d "build" ]; then
@@ -34,8 +28,7 @@ cmake --build .
3428

3529
product="libgit2.a"
3630
install_path="../../${product}"
37-
if [ "${product}" -nt "${install_path}" ]; then
38-
cp -v "${product}" "${install_path}"
39-
fi
31+
rm -rf $install_path
32+
cp -v "${product}" "${install_path}"
4033

4134
echo "libgit2 has been updated."

0 commit comments

Comments
 (0)