mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 12:36:21 +00:00
Added C plugin code from plugins branch
This commit is contained in:
26
src/main.c
26
src/main.c
@@ -32,12 +32,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "prof_config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_GIT_VERSION
|
||||
#ifdef PROF_HAVE_GIT_VERSION
|
||||
#include "gitversion.h"
|
||||
#endif
|
||||
|
||||
@@ -52,7 +52,7 @@ static char *account_name = NULL;
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
if (argc == 2 && g_strcmp0(argv[1], "docgen") == 0 && g_strcmp0(PACKAGE_STATUS, "development") == 0) {
|
||||
if (argc == 2 && g_strcmp0(argv[1], "docgen") == 0 && g_strcmp0(PROF_PACKAGE_STATUS, "development") == 0) {
|
||||
command_docgen();
|
||||
return 0;
|
||||
}
|
||||
@@ -80,17 +80,17 @@ main(int argc, char **argv)
|
||||
g_option_context_free(context);
|
||||
|
||||
if (version == TRUE) {
|
||||
if (strcmp(PACKAGE_STATUS, "development") == 0) {
|
||||
#ifdef HAVE_GIT_VERSION
|
||||
g_print("Profanity, version %sdev.%s.%s\n", PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION);
|
||||
if (strcmp(PROF_PACKAGE_STATUS, "development") == 0) {
|
||||
#ifdef PROF_HAVE_GIT_VERSION
|
||||
g_print("Profanity, version %sdev.%s.%s\n", PROF_PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION);
|
||||
#else
|
||||
g_print("Profanity, version %sdev\n", PACKAGE_VERSION);
|
||||
g_print("Profanity, version %sdev\n", PROF_PACKAGE_VERSION);
|
||||
#endif
|
||||
} else {
|
||||
g_print("Profanity, version %s\n", PACKAGE_VERSION);
|
||||
g_print("Profanity, version %s\n", PROF_PACKAGE_VERSION);
|
||||
}
|
||||
|
||||
g_print("Copyright (C) 2012 - 2015 James Booth <%s>.\n", PACKAGE_BUGREPORT);
|
||||
g_print("Copyright (C) 2012 - 2015 James Booth <%s>.\n", PROF_PACKAGE_BUGREPORT);
|
||||
g_print("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
|
||||
g_print("\n");
|
||||
g_print("This is free software; you are free to change and redistribute it.\n");
|
||||
@@ -99,10 +99,10 @@ main(int argc, char **argv)
|
||||
|
||||
g_print("Build information:\n");
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
#ifdef PROF_HAVE_LIBMESODE
|
||||
g_print("XMPP library: libmesode\n");
|
||||
#endif
|
||||
#ifdef HAVE_LIBSTROPHE
|
||||
#ifdef PROF_HAVE_LIBSTROPHE
|
||||
g_print("XMPP library: libstrophe\n");
|
||||
#endif
|
||||
|
||||
@@ -112,13 +112,13 @@ main(int argc, char **argv)
|
||||
g_print("Desktop notification support: Disabled\n");
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBOTR
|
||||
#ifdef PROF_HAVE_LIBOTR
|
||||
g_print("OTR support: Enabled\n");
|
||||
#else
|
||||
g_print("OTR support: Disabled\n");
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBGPGME
|
||||
#ifdef PROF_HAVE_LIBGPGME
|
||||
g_print("PGP support: Enabled\n");
|
||||
#else
|
||||
g_print("PGP support: Disabled\n");
|
||||
|
||||
Reference in New Issue
Block a user