Kaydet (Commit) e6fe8387 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

we should convert to DOS path for other exotic things than spaces too

backslases and other 'special' characters can mess with
later path handling

Change-Id: Ic21b0eb82b60ffb2e286706be00148582ff9ad58
üst ebc9ca1d
...@@ -29,15 +29,14 @@ PathFormat() ...@@ -29,15 +29,14 @@ PathFormat()
{ {
formatted_path="$1" formatted_path="$1"
if test "$build_os" = "cygwin"; then if test "$build_os" = "cygwin"; then
pf_part1=
pf_conv_to_dos= pf_conv_to_dos=
for pf_part in $formatted_path; do # spaces,parentheses,brackets,braces are problematic in pathname
if test -z "$pf_part1"; then # so are backslashes
pf_part1="$pf_part" case "$formatted_path" in
else *\ * | *\)* | *\(* | *\{* | *\}* | *\[* | *\]* | *\\* )
pf_conv_to_dos="yes" pf_conv_to_dos="yes"
fi ;;
done esac
if test "$pf_conv_to_dos" = "yes"; then if test "$pf_conv_to_dos" = "yes"; then
if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
formatted_path=`cygpath -sm "$formatted_path"` formatted_path=`cygpath -sm "$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