Commit 93b13032 authored by Rafaël Carré's avatar Rafaël Carré

contribs: store path of external tools with ""

helps when paths have a space in them (/c/Program Files/...)
parent 18ef3eb5
...@@ -319,22 +319,22 @@ echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake ...@@ -319,22 +319,22 @@ echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake
fi fi
if wget --version >/dev/null 2>&1; then if wget --version >/dev/null 2>&1; then
echo "WGET = `which wget` -c --passive" >> config.mak echo "WGET = \"`which wget`\" -c --passive" >> config.mak
elif test -z `curl --version >/dev/null 2>&1`; then elif test -z `curl --version >/dev/null 2>&1`; then
echo "WGET = `which curl` -L -O" >> config.mak echo "WGET = \"`which curl`\" -L -O" >> config.mak
else else
echo "You need at least wget or curl to fetch the packages." >&2 echo "You need at least wget or curl to fetch the packages." >&2
exit 1 exit 1
fi fi
if svn --version >/dev/null 2>&1; then if svn --version >/dev/null 2>&1; then
echo "SVN = `which svn`" >> config.mak echo "SVN = \"`which svn`\"" >> config.mak
else else
echo "You do not have a subversion client in your PATH." >&2 echo "You do not have a subversion client in your PATH." >&2
fi fi
if git --version>/dev/null 2>&1; then if git --version>/dev/null 2>&1; then
echo "GIT = `which git`" >> config.mak echo "GIT = \"`which git`\"" >> config.mak
else else
echo "You do not have a Git client in your PATH." >&2 echo "You do not have a Git client in your PATH." >&2
fi 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