X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraidx.c;h=6aa13e034bd90605d77d13552e7a5841bc85e12a;hb=e30daf1c89e3b781de360a9dcad4f83e72e16d28;hp=8ce646742798491bd5bd6db0b0713eaac9451e6d;hpb=89d3a004b7c651fd5673abfc192e1472dc4d4197;p=idzebra-moved-to-github.git diff --git a/index/zebraidx.c b/index/zebraidx.c index 8ce6467..6aa13e0 100644 --- a/index/zebraidx.c +++ b/index/zebraidx.c @@ -1,4 +1,4 @@ -/* $Id: zebraidx.c,v 1.4 2007-01-15 15:10:17 adam Exp $ +/* $Id: zebraidx.c,v 1.7 2007-10-22 13:05:22 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -31,8 +31,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #endif +#include #include #include +#include #include char *prog; @@ -66,8 +68,6 @@ int main (int argc, char **argv) ZebraService zs = 0; ZebraHandle zh = 0; - nmem_init (); - #ifdef WIN32 #else sprintf(nbuf, "%.40s(%ld)", *argv, (long) getpid()); @@ -232,17 +232,19 @@ int main (int argc, char **argv) } else if (ret == 'V') { - printf("Zebra %s %s\n", ZEBRAVER, ZEBRADATE); - printf(" (C) 1994-2007, Index Data ApS\n"); -#ifdef WIN32 -#ifdef _DEBUG - printf(" WIN32 Debug\n"); -#else - printf(" WIN32 Release\n"); -#endif -#endif -#if HAVE_BZLIB_H - printf("Using: libbzip2, (C) 1996-1999 Julian R Seward. All rights reserved.\n"); + char version_str[20]; + char sys_str[80]; + zebra_get_version(version_str, sys_str); + + printf("Zebra %s\n", version_str); + printf("(C) 1994-2007, 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); + if (strcmp(version_str, ZEBRAVER)) + printf("zebraidx compiled version %s\n", ZEBRAVER); +#if HAVE_ICU + printf("Using ICU\n"); #endif } else if (ret == 'v') @@ -280,7 +282,6 @@ int main (int argc, char **argv) res_close(res); res_close(default_res); - nmem_exit(); exit (0); return 0; }