mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 04:20:56 -04:00
+ remove old backend stuff
This commit is contained in:
parent
cd20c8c027
commit
ce4a4ee6d3
@ -23,7 +23,6 @@
|
|||||||
#include <kiwix/reader.h>
|
#include <kiwix/reader.h>
|
||||||
#include <kiwix/manager.h>
|
#include <kiwix/manager.h>
|
||||||
|
|
||||||
enum supportedBackend { XAPIAN };
|
|
||||||
enum supportedAction { NONE, ADDCONTENT };
|
enum supportedAction { NONE, ADDCONTENT };
|
||||||
|
|
||||||
void usage() {
|
void usage() {
|
||||||
@ -41,7 +40,6 @@ int main(int argc, char **argv) {
|
|||||||
bool buildIndexFlag = false;
|
bool buildIndexFlag = false;
|
||||||
int option_index = 0;
|
int option_index = 0;
|
||||||
int c = 0;
|
int c = 0;
|
||||||
supportedBackend backend = XAPIAN;
|
|
||||||
|
|
||||||
/* Argument parsing */
|
/* Argument parsing */
|
||||||
while (42) {
|
while (42) {
|
||||||
@ -49,12 +47,11 @@ int main(int argc, char **argv) {
|
|||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
{"verbose", no_argument, 0, 'v'},
|
{"verbose", no_argument, 0, 'v'},
|
||||||
{"buildIndex", no_argument, 0, 'i'},
|
{"buildIndex", no_argument, 0, 'i'},
|
||||||
{"backend", required_argument, 0, 'b'},
|
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (c != -1) {
|
if (c != -1) {
|
||||||
c = getopt_long(argc, argv, "vib:", long_options, &option_index);
|
c = getopt_long(argc, argv, "vi", long_options, &option_index);
|
||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'v':
|
case 'v':
|
||||||
@ -63,13 +60,6 @@ int main(int argc, char **argv) {
|
|||||||
case 'i':
|
case 'i':
|
||||||
buildIndexFlag = true;
|
buildIndexFlag = true;
|
||||||
break;
|
break;
|
||||||
case 'b':
|
|
||||||
if (!strcmp(optarg, "xapian")) {
|
|
||||||
backend = XAPIAN;
|
|
||||||
} else {
|
|
||||||
usage();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (optind < argc) {
|
if (optind < argc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user