Files
newznab-tmux/misc/update/nix/multiprocessing/fixrelnames.php
T
DariusIII c7da907542 Fix path
2017-04-04 15:09:34 +02:00

17 lines
510 B
PHP

<?php
if (!isset($argv[1]) || !in_array($argv[1], ['standard', 'predbft'])) {
exit(
'First argument (mandatory):' . PHP_EOL .
'standard => Attempt to fix release name using standard methods.' . PHP_EOL .
'predbft => Attempt to fix release name using Predb full text matching.' . PHP_EOL . PHP_EOL
);
}
require __DIR__ . DIRECTORY_SEPARATOR . '.do_not_run/require.php';
use nntmux\libraries\Forking;
declare(ticks = 1);
(new Forking())->processWorkType('fixRelNames_' . $argv[1], [0 => $argv[1]]);