#!/usr/bin/perl -w
#
# Copyright (C) 2007 Markus Hesse
#
# For licensing info read LICENSE file in the TWiki root.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details, published at 
# http://www.gnu.org/copyleft/gpl.html

# Set library paths in @INC, at compile time
BEGIN { unshift @INC, '.'; require '../../bin/setlib.cfg' }

use TWiki::Contrib::SearchEngineKinoSearchAddOn::Index;
use strict;

my $debug = ! ( @ARGV && $ARGV[0] eq "-q" );

$debug && print "KinoSearch index files update\n";
$debug && print "- to suppress all normal output: kinoupdate -q\n";

my $indexer = TWiki::Contrib::SearchEngineKinoSearchAddOn::Index->newUpdateIndex();
$indexer->updateIndex($debug)

# EOF
