From: Chris Koeritz Date: Mon, 27 Jun 2016 01:24:07 +0000 (-0400) Subject: added some debugging. still trying to resolve windows issues; cygpath didn't help... X-Git-Tag: 2.140.90~516 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=478592a729f51c71ce6a2af9913e2a65ba8105cf;p=feisty_meow.git added some debugging. still trying to resolve windows issues; cygpath didn't help since it can only do one path item at a time, and we are trying to translate variables like INCLUDE and such. may need to revisit that since INCLUDE resolves to something sensible already in shell? in any case, cygpath can either process a path (which doesn't actually seem to work) or process one path into a dos form of the path, but not both. --- diff --git a/scripts/generator/wrapdoze.sh b/scripts/generator/wrapdoze.sh index b3a3dd1c..3851aab9 100755 --- a/scripts/generator/wrapdoze.sh +++ b/scripts/generator/wrapdoze.sh @@ -8,6 +8,11 @@ function dossify_environment_variable() { local var="$1"; shift +#cygpath doesn't handle multiple path variables properly and otherwise operates only on one path element. +## new_value="$(cygpath -p -d ${!var})" +## eval "export $var=\"$new_value\"" +##echo "hey now the var is '${!var}'" + old_value="${!var}" if [[ ! "$old_value" =~ \/cygdrive\/ ]]; then #echo didnt have a cygdrive in it: $old_value @@ -21,8 +26,8 @@ function dossify_environment_variable() # remove any quote characters in the value. new_value="${new_value//\"/}" -# echo "new value: $var = $new_value" eval "export $var=\"$new_value\"" + echo "new value established: $var='${!var}'" } # for a windows build, this will replace any forward slashes