git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
word/edit: story column to store text descriptions
[sheet.git]
/
tools
/
mkimgthumb
diff --git
a/tools/mkimgthumb
b/tools/mkimgthumb
index 3c38e7cf2ce419d8033738c6acd5d14db1e4141e..e2b974dcf09e35ae7fdd27c3bdc3fbf7631880ee 100755
(executable)
--- a/
tools/mkimgthumb
+++ b/
tools/mkimgthumb
@@
-5,12
+5,13
@@
use warnings;
my $failcount = 0;
for my $src (@ARGV) {
my $failcount = 0;
for my $src (@ARGV) {
- my ($name, @cmds) = split /:/, $src =~ s/\.(\w+)\z//r;
+ my ($name, @cmds) = split /:
(?<!\\:)
/, $src =~ s/\.(\w+)\z//r;
my $ext = $1 // '*';
next if $name =~ m/\./;
unless (-e $src) {
($src) = grep {-e} glob qq<"$name"{,:*}.$ext> or next;
}
my $ext = $1 // '*';
next if $name =~ m/\./;
unless (-e $src) {
($src) = grep {-e} glob qq<"$name"{,:*}.$ext> or next;
}
+ s/\\(.)/$1/g for @cmds;
say $name;
if (@cmds and $cmds[0] =~ /^\d/) {
say $name;
if (@cmds and $cmds[0] =~ /^\d/) {