X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fversion.c;h=b26972d9b7f30c3a42b613585e95320da4079962;hp=7c4614f3b38ccca29fc06e70d171fe0d06dcf290;hb=HEAD;hpb=8af1b744fc580fb3e22ef54ba883d1ed67412b20 diff --git a/util/version.c b/util/version.c index 7c4614f..b26972d 100644 --- a/util/version.c +++ b/util/version.c @@ -1,8 +1,5 @@ -/* $Id: version.c,v 1.2 2007-08-27 17:40:10 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 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 @@ -29,33 +26,22 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #endif +#include #include #include -void zebra_get_version(char *version_str, char *sys_str) +void zebra_get_version(char *version_str, char *sha1_str) { if (version_str) strcpy(version_str, ZEBRAVER); - if (sys_str) - { - strcpy(sys_str, "unknown"); - -#ifdef WIN32 - strcpy(sys_str, "win32"); -#ifdef _MSC_VER - sprintf(sys_str+strlen(sys_str), "; mscver %lu", - (unsigned long) _MSC_VER); -#endif -#endif -#ifdef HOST_TRIPLET - strcpy(sys_str, HOST_TRIPLET); -#endif - } + if (sha1_str) + strcpy(sha1_str, ZEBRA_VERSION_SHA1); } /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab