Commit 7c79c551 authored by Rafaël Carré's avatar Rafaël Carré

Don't look for svn or git in strange paths, use $PATH

parent e7003c92
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment