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

fix PathFormat, use build_os not host_os

üst d64bdc0f
...@@ -16,7 +16,7 @@ MINGW_EXTERNAL_DLLS="" ...@@ -16,7 +16,7 @@ MINGW_EXTERNAL_DLLS=""
PathFormat() PathFormat()
{ {
formatted_path="$1" formatted_path="$1"
if test "$host_os" = "cygwin" ; then if test "$build_os" = "cygwin" ; then
pf_part1= pf_part1=
pf_conv_to_dos= pf_conv_to_dos=
for pf_part in $formatted_path ; do for pf_part in $formatted_path ; do
...@@ -29,8 +29,8 @@ PathFormat() ...@@ -29,8 +29,8 @@ PathFormat()
if test "$pf_conv_to_dos" = "yes" ; then if test "$pf_conv_to_dos" = "yes" ; then
formatted_path=`cygpath -d "$formatted_path"` formatted_path=`cygpath -d "$formatted_path"`
fi fi
fp_count_colon=`cat "$formatted_path" | grep -c "[:]"` fp_count_colon=`echo "$formatted_path" | grep -c "[:]"`
fp_count_slash=`cat "$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"` formatted_path=`realpath "$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