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");
int bundle_creator::recurse_into_dir(const astring &source,
const astring &target, int manifest_index)
{
-// FUNCDEF("recurse_into_dir");
+ FUNCDEF("recurse_into_dir");
//LOG(astring("src=") + source + " dest=" + target);
// we won't include the subversion folder.
int bundle_creator::patch_recursive_target(const astring &source,
const astring &target, int manifest_index)
{
-// FUNCDEF("patch_recursive_target");
+ FUNCDEF("patch_recursive_target");
//LOG(astring("patch recurs src=") + source + " targ=" + target);
return recurse_into_dir(source, target, manifest_index);
}
int bundle_creator::patch_wildcard_target(const astring &source,
const astring &target, int manifest_index)
{
-// FUNCDEF("patch_wildcard_target");
+ FUNCDEF("patch_wildcard_target");
// find the last slash. the rest is our wildcard component.
int src_end = source.end();
int slash_indy = source.find('/', src_end, true);
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)) {
int bundle_creator::write_offset()
{
-// FUNCDEF("write_offset");
+ FUNCDEF("write_offset");
byte_filer bun(_output_file, "r+b"); // open the file for updating.
astring magic_string("muftiloc"); // our sentinel string.