From 478592a729f51c71ce6a2af9913e2a65ba8105cf Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 26 Jun 2016 21:24:07 -0400 Subject: [PATCH] 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. --- scripts/generator/wrapdoze.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.34.1