Pazpar2 -V also shows Git SHA1.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 May 2009 11:00:09 +0000 (13:00 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 May 2009 11:00:09 +0000 (13:00 +0200)
src/pazpar2.c

index 3352fa0..6b387b7 100644 (file)
@@ -56,7 +56,12 @@ void child_handler(void *data)
 static void show_version(void)
 {
     char yaz_version_str[80];
-    printf("Pazpar2 " PACKAGE_VERSION "\n");
+    printf("Pazpar2 " PACKAGE_VERSION 
+#ifdef PAZPAR2_VERSION_SHA1
+           " "
+           PAZPAR2_VERSION_SHA1
+#endif
+"\n");
 
     yaz_version(yaz_version_str, 0);