# settings.txt
#
-# Copyright (C) 2023, 2024 Balthasar Szczepański
+# Copyright (C) 2023, 2024, 2025 Balthasar Szczepański
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-_version: 1.2.9
+_version: 1.2.10
_SHEBANG: #!$0
-#!/usr/bin/perl
+###RUN_PERL: #!/usr/bin/perl
# update.pl is generated from update.1.pl.
#
# update already ONGed frames & stuff
#
-# Copyright (C) 2016, 2017, 2023, 2024 Balthasar Szczepański
+# Copyright (C) 2016, 2017, 2023, 2024, 2025 Balthasar Szczepański
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
my $fail = 0;
-print $time."\n";
+print $time." update\n";
foreach my $id (@ARGV) {
if ($id eq 'all') {
}
}
elsif ($id =~ /^[0-9]+$/) {
- $update_goto = 1;
my $f = int($&);
if ($f <= $last_frame) {
- push @list, $f
+ $update_goto = 1;
+ push @list, $f;
}
else {
print "$f > $last_frame\n";
$fail += 1;
}
}
+ elsif ($id =~ /^([0-9]*)\-([0-9]+)$/) {
+ my $f_start = int($1); # int('') == 0
+ my $f_end = int($2);
+ if ($f_start > $f_end) {
+ print "$f_start > $f_end\n";
+ $fail += 1;
+ next;
+ }
+ for (my $f=$f_start; $f<=$f_end; $f+=1) {
+ if ($f <= $last_frame) {
+ $update_goto = 1;
+ push @list, $f;
+ }
+ else {
+ print "$f > $last_frame\n";
+ $fail += 1;
+ }
+ }
+ }
+ elsif ($id =~ /^([0-9]+)\+$/) {
+ my $f_start = int($1);
+ if ($f_start > $last_frame) {
+ print "$f_start > $last_frame\n";
+ $fail += 1;
+ next;
+ }
+ $update_goto = 1;
+ for (my $f=$f_start; $f<=$last_frame; $f+=1) {
+ push @list, $f;
+ }
+ }
elsif ($id =~ /^[ic]$/) {
push @list, $&;
}
}
}
-print "\n";
+print (($fail > 0) ? "update FAIL\n\n" : "update OK\n\n");
sub get_frame_data {