From: Kevin Day Date: Fri, 8 Apr 2022 01:18:52 +0000 (-0500) Subject: Update: The fake program should show the fakefile or setting being used when building. X-Git-Tag: 0.5.10~226 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=cdcb222499feb7096b2df7e16627676409bbe2ab;p=fll Update: The fake program should show the fakefile or setting being used when building. This helps make what is going more clear when viewing the console. Multiple executions of different build settings (or fakefiles) should be easily determinable such as when running tests. --- diff --git a/level_3/fake/c/private-build.c b/level_3/fake/c/private-build.c index c3f5fa1..04002d5 100644 --- a/level_3/fake/c/private-build.c +++ b/level_3/fake/c/private-build.c @@ -837,7 +837,9 @@ extern "C" { fl_print_format("%r%[Building%] ", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable); - fl_print_format("%[.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fl_print_format("%[ using '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->settings, data->main->context.set.notable); + fl_print_format("%['.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); funlockfile(data->main->output.to.stream); } diff --git a/level_3/fake/c/private-make-operate.c b/level_3/fake/c/private-make-operate.c index a455f60..a62dcef 100644 --- a/level_3/fake/c/private-make-operate.c +++ b/level_3/fake/c/private-make-operate.c @@ -27,7 +27,13 @@ extern "C" { } if (data->main->output.verbosity != f_console_verbosity_quiet_e) { - fll_print_format("%r%[Now making.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + flockfile(data->main->output.to.stream); + + fl_print_format("%r%[Now making using '%]", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->fakefile, data->main->context.set.notable); + fl_print_format("%['.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + + funlockfile(data->main->output.to.stream); } f_status_t status = F_none;