21 my @opt = <<'=back' =~ /B<--(\S+)>/g;
29 Skip the run(s) with I<--focus != tar>
35 Calls bin/analysis-oldreports-extinction-program.pl several times with our favorite parameters
41 use lib
"$FindBin::Bin/../lib";
47 use File
::Basename
qw(dirname);
48 use File
::Path
qw(mkpath);
53 use Hash
::Util
qw(lock_keys);
56 lock_keys
%Opt, map { /([^=|!]+)/ } @opt;
64 my $days_for_three = 365;
66 { k
=> 3, m
=> $days_for_three, f
=> 'dir' }, # expensive, runs
70 { k
=> 17, m
=> 20 }, # as long as we have more than 17, we remove everything older 20
78 { k
=> 3, m
=> $days_for_three, f
=> 'tar' },
79 { k
=> 2, m
=> 731 }, # as long as we have more than 2, we remove everything older ...
80 { k
=> 1, m
=> 1096 }, # as long as we have more than 1, we remove everything older ...
83 PARAMCOMBI
: for my $p (@p) {
85 $p->{m
} ||= $days_for_three;
87 if ($Opt{onlytar
} && $p->{f
} ne 'tar') {
88 warn "Info: skipping run for $p->{f} due 'onlytar'\n";
92 "$FindBin::Bin/analysis-oldreports-extinction-program.pl",
96 "--keepresults=$p->{k}",
100 warn "Calling @system\n";
101 0 == system @system or die "Error while running @system";
106 # cperl-indent-level: 4