Title: [250722] trunk/Tools
Revision
250722
Author
clo...@igalia.com
Date
2019-10-04 08:23:41 -0700 (Fri, 04 Oct 2019)

Log Message

[GTK][WPE] Print the revision number on command "--version" of the MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=202581

Reviewed by Carlos Garcia Campos.

When WebKit its build from source repository instead of a tarball
we can print the SVN revision to be more precise about the version
of WebKit when the option --version is passed to the MiniBrowser.

* MiniBrowser/gtk/main.c:
(main):
* MiniBrowser/wpe/main.cpp:
(main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (250721 => 250722)


--- trunk/Tools/ChangeLog	2019-10-04 14:53:17 UTC (rev 250721)
+++ trunk/Tools/ChangeLog	2019-10-04 15:23:41 UTC (rev 250722)
@@ -1,3 +1,19 @@
+2019-10-04  Carlos Alberto Lopez Perez  <clo...@igalia.com>
+
+        [GTK][WPE] Print the revision number on command "--version" of the MiniBrowser
+        https://bugs.webkit.org/show_bug.cgi?id=202581
+
+        Reviewed by Carlos Garcia Campos.
+
+        When WebKit its build from source repository instead of a tarball
+        we can print the SVN revision to be more precise about the version
+        of WebKit when the option --version is passed to the MiniBrowser.
+
+        * MiniBrowser/gtk/main.c:
+        (main):
+        * MiniBrowser/wpe/main.cpp:
+        (main):
+
 2019-10-04  Carlos Garcia Campos  <cgar...@igalia.com>
 
         Unreviewed. Fix GTK distcheck

Modified: trunk/Tools/MiniBrowser/gtk/main.c (250721 => 250722)


--- trunk/Tools/MiniBrowser/gtk/main.c	2019-10-04 14:53:17 UTC (rev 250721)
+++ trunk/Tools/MiniBrowser/gtk/main.c	2019-10-04 15:23:41 UTC (rev 250722)
@@ -525,10 +525,13 @@
     g_option_context_free (context);
 
     if (printVersion) {
-        g_print("WebKitGTK %u.%u.%u\n",
+        g_print("WebKitGTK %u.%u.%u",
             webkit_get_major_version(),
             webkit_get_minor_version(),
             webkit_get_micro_version());
+        if (g_strcmp0(SVN_REVISION, "tarball"))
+            g_print(" (%s)", SVN_REVISION);
+        g_print("\n");
         return 0;
     }
 

Modified: trunk/Tools/MiniBrowser/wpe/main.cpp (250721 => 250722)


--- trunk/Tools/MiniBrowser/wpe/main.cpp	2019-10-04 14:53:17 UTC (rev 250721)
+++ trunk/Tools/MiniBrowser/wpe/main.cpp	2019-10-04 15:23:41 UTC (rev 250722)
@@ -195,10 +195,13 @@
     g_option_context_free(context);
 
     if (printVersion) {
-        g_print("WPE WebKit %u.%u.%u\n",
+        g_print("WPE WebKit %u.%u.%u",
             webkit_get_major_version(),
             webkit_get_minor_version(),
             webkit_get_micro_version());
+        if (g_strcmp0(SVN_REVISION, "tarball"))
+            g_print(" (%s)", SVN_REVISION);
+        g_print("\n");
         return 0;
     }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to