]> git.sesse.net Git - vlc/commitdiff
Don't look for svn or git in strange paths, use $PATH
authorRafaël Carré <funman@videolan.org>
Wed, 12 Mar 2008 16:28:15 +0000 (17:28 +0100)
committerRafaël Carré <funman@videolan.org>
Wed, 12 Mar 2008 20:19:24 +0000 (21:19 +0100)
extras/contrib/bootstrap

index fbba865e19638dc1bc75e21b0302c22cb3bf77f9..70169a5c713e3b093768b819973bee4b93a9d3e5 100755 (executable)
@@ -278,30 +278,14 @@ else
     exit 1
 fi
 
-if test -f /sw/bin/svn; then
-    echo "SVN = /sw/bin/svn" >> config.mak
-elif test -f /usr/local/bin/svn; then
-    echo "SVN = /usr/local/bin/svn" >> config.mak
-elif test -f /usr/bin/svn; then
-    echo "SVN = /usr/bin/svn" >> config.mak
-elif test -f /opt/local/bin/svn; then
-    echo "SVN = /opt/local/bin/svn" >> config.mak
-elif svn help >/dev/null 2>&1; then
+if svn help >/dev/null 2>&1; then
     echo "SVN = `which svn`" >> config.mak
 else
-    echo "You do not have a subversion client installed." >&2
+    echo "You do not have a subversion client in your PATH." >&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
+if git help >/dev/null 2>&1; then
     echo "GIT = `which git`" >> config.mak
 else
-    echo "You do not have a Git client installed." >&2
+    echo "You do not have a Git client in your PATH." >&2
 fi