[gdm/gnome-2-30] Print the version when asked to



commit 72144562f5eab8e6160e1498e6f5a59afcc37485
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Jun 16 20:06:01 2010 -0400

    Print the version when asked to
    
    https://bugzilla.gnome.org/show_bug.cgi?id=594857

 daemon/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/daemon/main.c b/daemon/main.c
index cfc3655..81dd9d3 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -560,6 +560,11 @@ main (int    argc,
                 goto out;
         }
 
+        if (print_version) {
+                g_print ("GDM %s\n", VERSION);
+                exit (1);
+        }
+
         if (fatal_warnings) {
                 GLogLevelFlags fatal_mask;
 



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