X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fgenerator%2Fwrapdoze.sh;h=b4ea47f6aea14a3e30aa7ff5b1b4ca1ec764d06f;hb=63ea779000a06dd59febb62501f0e97812037a31;hp=c28d0e722e68afe0e8b28f39f7bb85988ae3776c;hpb=f8197f8c46475e04f678ea7832ab86157b9788d1;p=feisty_meow.git diff --git a/scripts/generator/wrapdoze.sh b/scripts/generator/wrapdoze.sh index c28d0e72..b4ea47f6 100755 --- a/scripts/generator/wrapdoze.sh +++ b/scripts/generator/wrapdoze.sh @@ -1,6 +1,6 @@ #!/bin/bash -source $FEISTY_MEOW_SCRIPTS/core/functions.sh +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" #hmmm: make this support multiple vars as parameters. # replaces a specific environment variable with a dos approved equivalent. @@ -18,6 +18,7 @@ function dossify_environment_variable() if [[ ! "$old_value" =~ \/cygdrive\/ ]]; then #echo didnt have a cygdrive in it: $old_value return 0 +#hmmm: want this to continue in multi parm version. fi # replace single back-slashes with double ones. @@ -26,8 +27,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 @@ -96,8 +97,7 @@ function dossify_and_run_commands() #new approach that creates a cmd file. cmdfile="$(mktemp $CLAM_TMP/build_cmds.XXXXXX)" echo "${real_commands[@]}" >"$cmdfile" -echo "** cmd file is: '$cmdfile')" -#echo "** cmd file has: $(cat "$cmdfile")" +#echo "**** cmd file is $cmdfile" cmd /c $(cat "$cmdfile") retval=$? # leave the file for inspection if there was an error.