added some debugging. still trying to resolve windows issues; cygpath didn't help...
authorChris Koeritz <fred@gruntose.com>
Mon, 27 Jun 2016 01:24:07 +0000 (21:24 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 27 Jun 2016 01:24:07 +0000 (21:24 -0400)
scripts/generator/wrapdoze.sh

index b3a3dd1c61c75730e418e8bd35a5dd9dfded591f..3851aab9ecc172201347b4fe10ac92b2a4974a52 100755 (executable)
@@ -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