From: Mischa POSLAWSKY Date: Sat, 2 May 2020 23:22:11 +0000 (+0200) Subject: dieren: mkimgthumb escape to support colons in parameters X-Git-Tag: v1.12~5 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/b352480be234cea5ce34113d86e16749be62828d dieren: mkimgthumb escape to support colons in parameters Backslash to allow the occasional `-define modulate:colorspace=HSB` as :-define:module\:colorspace=HSB. --- diff --git a/tools/mkimgthumb b/tools/mkimgthumb index 3c38e7c..e2b974d 100755 --- a/tools/mkimgthumb +++ b/tools/mkimgthumb @@ -5,12 +5,13 @@ use warnings; my $failcount = 0; for my $src (@ARGV) { - my ($name, @cmds) = split /:/, $src =~ s/\.(\w+)\z//r; + my ($name, @cmds) = split /:(? or next; } + s/\\(.)/$1/g for @cmds; say $name; if (@cmds and $cmds[0] =~ /^\d/) {