summaryrefslogtreecommitdiff
path: root/tools/mkheaders
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-01-27 16:47:08 +0000
committerSadie Powell <sadie@witchery.services>2021-01-27 16:47:08 +0000
commit859a79923a1e9df7195e1320d66b61ee162f52cc (patch)
tree691a9d5cb9aea1e587c130888b389398843b7b45 /tools/mkheaders
parentf6b861f12d070ba931d829505bfd3229653f5df2 (diff)
Migrate some stuff away from print_format.
Diffstat (limited to 'tools/mkheaders')
-rwxr-xr-xtools/mkheaders6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mkheaders b/tools/mkheaders
index 0ca593584..f7b1247da 100755
--- a/tools/mkheaders
+++ b/tools/mkheaders
@@ -50,7 +50,7 @@ for my $path (@paths) {
next if $path =~ /\/vendor\//;
if (system "git ls-files --error-unmatch -- $path 1>/dev/null 2>/dev/null") {
- print_format "Skipping <|YELLOW $path|> as it has not been committed.\n" if defined $ENV{MKHEADERS_VERBOSE};
+ say STDERR console_format "Skipping <|YELLOW $path|> as it has not been committed." if defined $ENV{MKHEADERS_VERBOSE};
next;
}
@@ -68,7 +68,7 @@ for my $path (@paths) {
close $fh;
if (defined $copyright) {
- print_format "Updating copyright headers in <|GREEN $path|>.\n" if defined $ENV{MKHEADERS_VERBOSE};
+ say console_format "Updating copyright headers in <|GREEN $path|>." if defined $ENV{MKHEADERS_VERBOSE};
my (%author, %authors);
my $ignored_args = join ' ', map { "--ignore-rev $_" } @ignored_revisions;
for my $line (split /\n+/, `git blame $ignored_args --incremental -w HEAD -- $path`) {
@@ -135,7 +135,7 @@ for my $path (@paths) {
close $fh;
push @updated, $path;
} else {
- print_format "Skipping <|YELLOW $path|> as it contains no copyright headers.\n" if defined $ENV{MKHEADERS_VERBOSE};
+ say STDERR console_format "Skipping <|YELLOW $path|> as it contains no copyright headers." if defined $ENV{MKHEADERS_VERBOSE};
}
}