2020-11-24 08:33:07 +01:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
my %found = ();
|
|
|
|
|
|
|
|
for my $filepath (@ARGV) {
|
|
|
|
open(my $ih, '<', $filepath);
|
|
|
|
binmode($ih, ':utf8');
|
|
|
|
|
|
|
|
while (my $line=<$ih>) {
|
|
|
|
while ($line =~ m<\\gonito(?:barescore|score|entry)\{([^\}]+)\}>g) {
|
2024-09-07 11:43:19 +02:00
|
|
|
my $k = $1;
|
|
|
|
|
|
|
|
if ($k ne '#1') {
|
|
|
|
$found{$k} = 1;
|
|
|
|
}
|
2020-11-24 08:33:07 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
close($ih);
|
|
|
|
}
|
|
|
|
|
2021-09-17 12:16:34 +02:00
|
|
|
print join(" ", map { "scores/${_}.txt" } map { s/ /\\ /g; $_} sort keys %found);
|