Files
2024-08-13 22:13:34 +02:00

20 lines
582 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_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
use Blacklight\libraries\Forking;
try {
(new Forking)->processWorkType('fixRelNames_'.$argv[1], [0 => $argv[1]]);
} catch (Exception $e) {
echo $e->getMessage();
}