]> git.sesse.net Git - vlc/commitdiff
Check git location.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 12 Mar 2008 06:27:49 +0000 (23:27 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 12 Mar 2008 06:27:49 +0000 (23:27 -0700)
extras/contrib/bootstrap

index e5c82ddce303f3dbd69ffe1a3df39f0f62765ae6..fbba865e19638dc1bc75e21b0302c22cb3bf77f9 100755 (executable)
@@ -291,3 +291,17 @@ elif svn help >/dev/null 2>&1; then
 else
     echo "You do not have a subversion client installed." >&2
 fi
+
+if test -f /sw/bin/git; then
+    echo "GIT = /sw/bin/git" >> config.mak
+elif test -f /usr/local/bin/git; then
+    echo "GIT = /usr/local/bin/git" >> config.mak
+elif test -f /usr/bin/git; then
+    echo "GIT = /usr/bin/git" >> config.mak
+elif test -f /opt/local/bin/git; then
+    echo "GIT = /opt/local/bin/git" >> config.mak
+elif git help >/dev/null 2>&1; then
+    echo "GIT = `which git`" >> config.mak
+else
+    echo "You do not have a Git client installed." >&2
+fi