yaz-config -V shows version + SHA1 (Bug #2829)
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 May 2009 07:21:41 +0000 (09:21 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 May 2009 07:21:41 +0000 (09:21 +0200)
yaz-config.in

index 117806a..e04767b 100644 (file)
@@ -18,6 +18,7 @@ ICU_CPPFLAGS="@ICU_CPPFLAGS@"
 SSL_LIBS="@SSL_LIBS@"
 LIBS="@LIBS@"
 YAZVERSION=@VERSION@
+VERSION_SHA1=@VERSION_SHA1@
 
 usage()
 {
@@ -50,6 +51,10 @@ while test $# -gt 0; do
            echo $yazprefix
            exit 0
            ;;
+        -V)
+           echo "$YAZVERSION $VERSION_SHA1"
+           exit 0
+            ;;
        --version)
            echo $YAZVERSION
            exit 0