1 |
#!/usr/bin/perl -w |
#!/usr/bin/perl -w |
2 |
|
|
3 |
use lib '.'; |
BEGIN { |
4 |
|
my $basedir = readlink($0) || $0; $basedir =~ s#/[^/]+$##; |
5 |
|
unshift(@INC, $basedir); |
6 |
|
} |
7 |
|
|
8 |
use MWS::SWISH; |
use MWS::SWISH; |
9 |
#use MWS::Plucene; |
#use MWS::Plucene; |
12 |
use POSIX qw(strftime); |
use POSIX qw(strftime); |
13 |
use Getopt::Long; |
use Getopt::Long; |
14 |
|
|
|
|
|
15 |
# are we called from this script? |
# are we called from this script? |
16 |
my $recursive = 0; |
my $recursive = 0; |
17 |
|
|
33 |
|
|
34 |
$mws->create_index if (! $recursive); |
$mws->create_index if (! $recursive); |
35 |
|
|
36 |
print STDERR "starting indexing..."; |
print STDERR "starting indexing...\n"; |
37 |
|
|
38 |
my $debug = 1; |
my $debug = 1; |
39 |
|
|