--- trunk/run.pl 2005/12/20 00:03:04 307 +++ trunk/run.pl 2005/12/31 14:00:36 335 @@ -40,6 +40,10 @@ remove database and Hyper Estraier index before indexing +=item --one=database_name + +reindex just single database + =item --config conf/config.yml path to YAML configuration file @@ -54,11 +58,13 @@ my $clean = 0; my $config = 'conf/config.yml'; my $debug = 0; +my $one_db_name; GetOptions( "limit=i" => \$limit, "offset=i" => \$offset, "clean" => \$clean, + "one=s" => \$one_db_name, "config" => \$config, "debug" => \$debug, ); @@ -73,6 +79,8 @@ while (my ($database, $db_config) = each %{ $config->{databases} }) { + next if ($one_db_name && $database !~ m/$one_db_name/i); + my $log = _new WebPAC::Common()->_get_logger(); #