Kaydet (Commit) 568dc479 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

The Cygwin realpath command fails for dirs on a mounted volume so just warn

Change-Id: Idff480084b22a5db6a0f00f90b7febc8488ba2af
üst dd5dfc8e
...@@ -48,9 +48,11 @@ PathFormat() ...@@ -48,9 +48,11 @@ PathFormat()
fp_count_slash=`echo "$formatted_path" | $GREP -c "[/]"` fp_count_slash=`echo "$formatted_path" | $GREP -c "[/]"`
if test "$fp_count_slash$fp_count_colon" != "00"; then if test "$fp_count_slash$fp_count_colon" != "00"; then
if test "$fp_count_colon" = "0"; then if test "$fp_count_colon" = "0"; then
formatted_path=`realpath "$formatted_path"` new_formatted_path=`realpath "$formatted_path"`
if test $? -ne 0; then if test $? -ne 0; then
AC_MSG_ERROR([realpath failed for "$1".]) AC_MSG_WARNING([realpath failed for "$1", not necessarily a problem.])
else
formatted_path="$new_formatted_path"
fi fi
fi fi
formatted_path=`cygpath -m "$formatted_path"` formatted_path=`cygpath -m "$formatted_path"`
......
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