From 73e05bea1b521129d76e5a7e641bf25c5f2d3341 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 3 Jan 2024 22:30:14 +0100 Subject: [PATCH] dieren: indicate format generation progress in mkimgthumb runs --- tools/mkimgthumb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/mkimgthumb b/tools/mkimgthumb index 32ae1a3..c672d3f 100755 --- a/tools/mkimgthumb +++ b/tools/mkimgthumb @@ -35,12 +35,13 @@ my $failcount = 0; for my $src (@ARGV) { my ($name, @cmds) = split /:(? or next; } s/\\(.)/$1/g for @cmds; - say $name; + print ':'; if (@cmds and $cmds[0] =~ /^\d/) { # crop shorthand from initial dimension argument @@ -54,14 +55,18 @@ for my $src (@ARGV) { my $image = Shiar_Sheet::ImagePrep->new($src); for (@ffs) { my ($ff, @ffcmds) = @{$_}; + print " $ff"; $image->convert("../$name.$ff", [@cmds, @ffcmds]); } 1; } or do { - warn "error creating image:\n"; + say ' FAILED'; warn ref $@ eq 'ARRAY' ? $@->[1] : $@ if $@; $failcount++; }; } +continue { + say ''; +} exit $failcount; -- 2.30.0