BASE_LOG(astring("starting file bundling at ") + time_stamp::notarize(false));
command_line cmds(_global_argc, _global_argv);
BASE_LOG(astring("starting file bundling at ") + time_stamp::notarize(false));
command_line cmds(_global_argc, _global_argv);
astring temp;
if (cmds.get_value('?', temp)) return print_instructions();
if (cmds.get_value("?", temp)) return print_instructions();
astring temp;
if (cmds.get_value('?', temp)) return print_instructions();
if (cmds.get_value("?", temp)) return print_instructions();
int bundle_creator::recurse_into_dir(const astring &source,
const astring &target, int manifest_index)
{
int bundle_creator::recurse_into_dir(const astring &source,
const astring &target, int manifest_index)
{
int bundle_creator::patch_recursive_target(const astring &source,
const astring &target, int manifest_index)
{
int bundle_creator::patch_recursive_target(const astring &source,
const astring &target, int manifest_index)
{
//LOG(astring("patch recurs src=") + source + " targ=" + target);
return recurse_into_dir(source, target, manifest_index);
}
//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)
{
int bundle_creator::patch_wildcard_target(const astring &source,
const astring &target, int manifest_index)
{
// find the last slash. the rest is our wildcard component.
int src_end = source.end();
int slash_indy = source.find('/', src_end, true);
// 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);
astring new_value = parser_bits::substitute_env_vars(_manifest_list[i]._parms);
environment::set(_manifest_list[i]._payload, new_value);
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));
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));
astring stub_file = parser_bits::substitute_env_vars
(repo_dir + "/binaries/" + stub_filename, false);
if (!filename(stub_file).exists()) {
astring stub_file = parser_bits::substitute_env_vars
(repo_dir + "/binaries/" + stub_filename, false);
if (!filename(stub_file).exists()) {
byte_filer bun(_output_file, "r+b"); // open the file for updating.
astring magic_string("muftiloc"); // our sentinel string.
byte_filer bun(_output_file, "r+b"); // open the file for updating.
astring magic_string("muftiloc"); // our sentinel string.