summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2017-06-19 23:36:08 +0200
committerDaniel Carl <danielcarl@gmx.de>2017-06-19 23:45:02 +0200
commitd1b576e7ec889bdd8bf6f4dc3d27d98745ffc0c1 (patch)
tree5ca319d02d8a60642af9245d2886b64490ee897c /src/main.c
parent934afeb503c4bc0c3d73ac67aaa7c4987105f27a (diff)
More fine grained version info.
Show the libraries vimb was compiled against and that are used at runtime. Remove license info from the output for 'version' or '-v' option.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c33
1 files changed, 27 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index c3fb8de..fe7d22f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1758,7 +1758,7 @@ int main(int argc, char* argv[])
gboolean ver = FALSE;
GOptionEntry opts[] = {
- {"embed", 'e', 0, G_OPTION_ARG_STRING, &winid, "Reparents to window specified by xid", NULL},
+ {"embed", 'e', 0, G_OPTION_ARG_STRING, &winid, "Reparents to window specified by xid", NULL},
{"config", 'c', 0, G_OPTION_ARG_FILENAME, &vb.configfile, "Custom configuration file", NULL},
{"profile", 'p', 0, G_OPTION_ARG_CALLBACK, (GOptionArgFunc*)profileOptionArgFunc, "Profile name", NULL},
{"version", 'v', 0, G_OPTION_ARG_NONE, &ver, "Print version", NULL},
@@ -1774,11 +1774,32 @@ int main(int argc, char* argv[])
}
if (ver) {
- fprintf(stdout, "%s, version %s\n\n", PROJECT, VERSION);
- fprintf(stdout, "Copyright © 2012 - 2017 Daniel Carl <danielcarl@gmx.de>\n");
- fprintf(stdout, "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
- fprintf(stdout, "This is free software; you are free to change and redistribute it.\n");
- fprintf(stdout, "There is NO WARRANTY, to the extent permitted by law.\n");
+ printf("%s, version %s\n\n", PROJECT, VERSION);
+ printf("Commit: %s\n", COMMIT);
+ printf("WebKit compile: %d.%d.%d\n",
+ WEBKIT_MAJOR_VERSION,
+ WEBKIT_MINOR_VERSION,
+ WEBKIT_MICRO_VERSION);
+ printf("WebKit run: %d.%d.%d\n",
+ webkit_get_major_version(),
+ webkit_get_minor_version(),
+ webkit_get_micro_version());
+ printf("GTK compile: %d.%d.%d\n",
+ GTK_MAJOR_VERSION,
+ GTK_MINOR_VERSION,
+ GTK_MICRO_VERSION);
+ printf("GTK run: %d.%d.%d\n",
+ gtk_major_version,
+ gtk_minor_version,
+ gtk_micro_version);
+ printf("libsoup compile: %d.%d.%d\n",
+ SOUP_MAJOR_VERSION,
+ SOUP_MINOR_VERSION,
+ SOUP_MICRO_VERSION);
+ printf("libsoup run: %u.%u.%u\n",
+ soup_get_major_version(),
+ soup_get_minor_version(),
+ soup_get_micro_version());
return EXIT_SUCCESS;
}