|
a/src/index/recollindex.cpp |
|
b/src/index/recollindex.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: recollindex.cpp,v 1.10 2005-04-05 09:35:35 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: recollindex.cpp,v 1.11 2005-11-05 14:40:50 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
|
4 |
|
5 |
#include <stdio.h>
|
5 |
#include <stdio.h>
|
6 |
#include <signal.h>
|
6 |
#include <signal.h>
|
7 |
|
7 |
|
|
... |
|
... |
24 |
exit(1);
|
24 |
exit(1);
|
25 |
}
|
25 |
}
|
26 |
|
26 |
|
27 |
int main(int argc, const char **argv)
|
27 |
int main(int argc, const char **argv)
|
28 |
{
|
28 |
{
|
|
|
29 |
string reason;
|
29 |
RclConfig *config = recollinit(cleanup, sigcleanup);
|
30 |
RclConfig *config = recollinit(cleanup, sigcleanup, reason);
|
30 |
|
31 |
|
|
|
32 |
if (config == 0 || !config->ok()) {
|
|
|
33 |
string str = "Configuration problem: ";
|
|
|
34 |
str += reason;
|
|
|
35 |
fprintf(stderr, "%s\n", str.c_str());
|
|
|
36 |
exit(1);
|
|
|
37 |
}
|
31 |
indexer = new ConfIndexer(config);
|
38 |
indexer = new ConfIndexer(config);
|
32 |
|
39 |
|
33 |
exit(!indexer->index());
|
40 |
exit(!indexer->index());
|
34 |
}
|
41 |
}
|