projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f77570
)
yaz-client's version info includes SHA1.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 17 Nov 2008 23:00:37 +0000
(
00:00
+0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 17 Nov 2008 23:00:37 +0000
(
00:00
+0100)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
38ac3d7
..
ac7380c
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-4885,12
+4885,12
@@
static void client(void)
static void show_version(void)
{
- char vstr[20];
+ char vstr[20], sha1_str[41];
- yaz_version(vstr, 0);
- printf("YAZ version: %s\n", YAZ_VERSION);
- if (strcmp(vstr, YAZ_VERSION))
- printf("YAZ DLL/SO: %s\n", vstr);
+ yaz_version(vstr, sha1_str);
+ printf("YAZ version: %s %s\n", YAZ_VERSION, YAZ_VERSION_SHA1);
+ if (strcmp(sha1_str, YAZ_VERSION_SHA1))
+ printf("YAZ DLL/SO: %s %s\n", vstr, sha1_str);
exit(0);
}