X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Fapplications%2Fbundler%2Fbundle_creator.cpp;h=04c5b1730f9c3a69d2b34735af1ac8ae1fe249c3;hb=d7e8a05960951d8ce67e36c587726a851e2f5165;hp=8212edc32e63b10d0063fc69d67542f29bd0d7b6;hpb=118b53690a49dead67f39e3bf38c54643bff9dd1;p=feisty_meow.git diff --git a/nucleus/applications/bundler/bundle_creator.cpp b/nucleus/applications/bundler/bundle_creator.cpp index 8212edc3..04c5b173 100644 --- a/nucleus/applications/bundler/bundle_creator.cpp +++ b/nucleus/applications/bundler/bundle_creator.cpp @@ -103,7 +103,7 @@ public: bundle_creator() : application_shell(), _app_name(filename(_global_argv[0]).basename()), - _bundle(NIL), _stub_size(0), _keyword() {} + _bundle(NULL_POINTER), _stub_size(0), _keyword() {} virtual ~bundle_creator() { WHACK(_bundle); @@ -328,7 +328,7 @@ int bundle_creator::add_files_here(directory &dirndl, const astring &source, 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. @@ -366,7 +366,7 @@ int bundle_creator::recurse_into_dir(const astring &source, 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); } @@ -374,7 +374,7 @@ int bundle_creator::patch_recursive_target(const astring &source, 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); @@ -471,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)) { @@ -748,7 +748,7 @@ astring bundle_creator::determine_stub_file_and_validate() #ifdef __WIN32__ astring stub_filename("unpacker_stub.exe"); #endif - astring repo_dir = "$PRODUCTION_DIR"; + astring repo_dir = "$RUNTIME_PATH"; astring stub_file = parser_bits::substitute_env_vars (repo_dir + "/binaries/" + stub_filename, false); if (!filename(stub_file).exists()) { @@ -922,7 +922,7 @@ int bundle_creator::finalize_file() 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.