diff options
author | Sadie Powell <sadie@witchery.services> | 2021-01-29 13:39:13 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-01-29 13:39:13 +0000 |
commit | 3e557e85d3ae1ef6d09ed2fdda379d8833a4400d (patch) | |
tree | 7cb0712740fc1ce9c0ddac1982c46a6a4de0d410 /make/configure.pm | |
parent | ad1ad11067ab089710305c030b00e966f3f10d17 (diff) |
Purge all remaining uses of print_format.
Diffstat (limited to 'make/configure.pm')
-rw-r--r-- | make/configure.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/make/configure.pm b/make/configure.pm index dcdcd0aca..86ce8d0a1 100644 --- a/make/configure.pm +++ b/make/configure.pm @@ -199,8 +199,8 @@ sub cmd_update { sub run_test($$;$) { my ($what, $result, $adjective) = @_; $adjective //= 'available'; - print_format "Checking whether <|GREEN $what|> is $adjective ... "; - print_format $result ? "<|GREEN yes|>\n" : "<|RED no|>\n"; + print console_format "Checking whether <|GREEN $what|> is $adjective ... "; + say console_format $result ? "<|GREEN yes|>" : "<|RED no|>"; return $result; } @@ -237,11 +237,11 @@ sub module_shrink($) { sub write_configure_cache(%) { unless (-e CONFIGURE_DIRECTORY) { - print_format "Creating <|GREEN ${\abs2rel CONFIGURE_DIRECTORY, CONFIGURE_ROOT}|> ...\n"; + say console_format "Creating <|GREEN ${\abs2rel CONFIGURE_DIRECTORY, CONFIGURE_ROOT}|> ..."; create_directory CONFIGURE_DIRECTORY, 0750 or print_error "unable to create ${\CONFIGURE_DIRECTORY}: $!"; } - print_format "Writing <|GREEN ${\abs2rel CONFIGURE_CACHE_FILE, CONFIGURE_ROOT}|> ...\n"; + say console_format "Writing <|GREEN ${\abs2rel CONFIGURE_CACHE_FILE, CONFIGURE_ROOT}|> ..."; my %config = @_; write_config_file CONFIGURE_CACHE_FILE, %config; } @@ -277,7 +277,7 @@ sub parse_templates($$$) { # Iterate through files in make/template. foreach my $template (<${\CONFIGURE_ROOT}/make/template/*>) { - print_format "Parsing <|GREEN ${\abs2rel $template, CONFIGURE_ROOT}|> ...\n"; + say console_format "Parsing <|GREEN ${\abs2rel $template, CONFIGURE_ROOT}|> ..."; open(my $fh, $template) or print_error "unable to read $template: $!"; my (@lines, $mode, @platforms, @targets); @@ -336,12 +336,12 @@ sub parse_templates($$$) { # Create the directory if it doesn't already exist. my $directory = dirname $target; unless (-e $directory) { - print_format "Creating <|GREEN ${\abs2rel $directory, CONFIGURE_ROOT}|> ...\n"; + say console_format "Creating <|GREEN ${\abs2rel $directory, CONFIGURE_ROOT}|> ..."; create_directory $directory, 0750 or print_error "unable to create $directory: $!"; }; # Write the template file. - print_format "Writing <|GREEN ${\abs2rel $target, CONFIGURE_ROOT}|> ...\n"; + say console_format "Writing <|GREEN ${\abs2rel $target, CONFIGURE_ROOT}|> ..."; open(my $fh, '>', $target) or print_error "unable to write $target: $!"; foreach (@lines) { say $fh $_; |