removed last places the TMP variables was getting deranged.
[feisty_meow.git] / nucleus / applications / bundler / bundle_creator.cpp
index 5a6722a942344107ea3fca8306d91b5f5a7b3132..8212edc32e63b10d0063fc69d67542f29bd0d7b6 100644 (file)
@@ -239,6 +239,10 @@ Abandoning bundling process.\n", _app_name.s()));
   environment::set("DLL_START", "");
   environment::set("DLL_END", ".dll");
 #endif
+  // specify a target variable on the source side so that we can operate in there,
+  // even if the bundle doesn't specify one.  otherwise we can't run source side commands
+  // properly if the paths are based on TARGET (like TMP often is).
+  environment::set("TARGET", environment::TMP());
 
   int ret = 0;
   if ( (ret = read_manifest()) ) FAIL_RETURN(ret, "reading manifest");
@@ -467,10 +471,10 @@ int bundle_creator::read_manifest()
       astring new_value = parser_bits::substitute_env_vars(_manifest_list[i]._parms);
       environment::set(_manifest_list[i]._payload, new_value);
           
-#ifdef DEBUG_BUNDLER
+//#ifdef DEBUG_BUNDLER
       BASE_LOG(astring("** variable ") + _manifest_list[i]._payload + " should have value=" + new_value);
       BASE_LOG(astring("** variable ") + _manifest_list[i]._payload + " now does have value=" + environment::get(_manifest_list[i]._payload));
-#endif
+//#endif
 
       continue;
     } else if (ini.get(section_name, "assert_defined", value)) {