[seahorse] More info when --version parameter is specified.



commit 762c04906a63ed80d07cb3ca0801a5d173dc2600
Author: Pablo Castellano <pablog src gnome org>
Date:   Tue Mar 2 12:02:27 2010 +0100

    More info when --version parameter is specified.
    
    Show path to GNUPG executable and version for which
    seahorse was compiled

 configure.in        |    1 +
 src/seahorse-main.c |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index a228cc5..69f226b 100644
--- a/configure.in
+++ b/configure.in
@@ -128,6 +128,7 @@ else
 	if test	"$DO_CHECK" = "yes"; then
 		accepted_versions="1.2 1.4 2.0"
 		AC_PATH_PROGS(GNUPG, [gpg gpg2], no)
+		AC_DEFINE_UNQUOTED(GNUPG, "$GNUPG", [Path to gpg executable.])
 		ok="no"
 		if test "$GNUPG" != "no"; then
 			AC_MSG_CHECKING(for appropriate GnuPG version)
diff --git a/src/seahorse-main.c b/src/seahorse-main.c
index d3041ae..ecbd0cb 100644
--- a/src/seahorse-main.c
+++ b/src/seahorse-main.c
@@ -82,7 +82,8 @@ main (int argc, char **argv)
     }
 
     if (show_version) {
-        g_print ("%s %s\n", argv [0], VERSION);
+        g_print ("%s\n", PACKAGE_STRING);
+        g_print ("GNUPG: %s (%d.%d.%d)\n", GNUPG, GPG_MAJOR, GPG_MINOR, GPG_MICRO);
         exit (1);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]