X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraidx.c;h=a9efb403f78d0e17dc95a1c3cc3d637f44500492;hb=5e7ca59d5cff2e9ee4710bb9a10cdb9434b9ad5a;hp=8f50e3eb5033f39d6e4d1802705c77e92f21cea4;hpb=97a7adeb9e5059463f039495cc01cfa448463a27;p=idzebra-moved-to-github.git diff --git a/index/zebraidx.c b/index/zebraidx.c index 8f50e3e..a9efb40 100644 --- a/index/zebraidx.c +++ b/index/zebraidx.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + Copyright (C) 1994-2010 Index Data Zebra 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 @@ -177,6 +177,16 @@ int main(int argc, char **argv) { show_filters(zs); } + else if (!strcmp(arg, "check0")) + { + if (zebra_register_check(zh, 0) != ZEBRA_OK) + yaz_log(YLOG_WARN, "register check failed"); + } + else if (!strcmp(arg, "check1") || !strcmp(arg, "check")) + { + if (zebra_register_check(zh, 1) != ZEBRA_OK) + yaz_log(YLOG_WARN, "register check failed"); + } else { yaz_log(YLOG_FATAL, "unknown command: %s", arg); @@ -241,10 +251,10 @@ int main(int argc, char **argv) zebra_get_version(version_str, sys_str); printf("Zebra %s\n", version_str); - printf("(C) 1994-2007, Index Data ApS\n"); + printf("(C) 1994-2010, Index Data ApS\n"); printf("Zebra is free software, covered by the GNU General Public License, and you are\n"); printf("welcome to change it and/or distribute copies of it under certain conditions.\n"); - printf("Configured as: %s\n", sys_str); + printf("SHA1 ID: %s\n", sys_str); if (strcmp(version_str, ZEBRAVER)) printf("zebraidx compiled version %s\n", ZEBRAVER); #if YAZ_HAVE_ICU @@ -293,6 +303,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab