From: Adam Dickmeiss Date: Tue, 5 May 2009 11:00:09 +0000 (+0200) Subject: Pazpar2 -V also shows Git SHA1. X-Git-Tag: v1.1.0~22 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=2628f9508a3b56be7071f2db91f9f4fd1f6f2d52;p=pazpar2-moved-to-github.git Pazpar2 -V also shows Git SHA1. --- diff --git a/src/pazpar2.c b/src/pazpar2.c index 3352fa0..6b387b7 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -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);