Introduce EXTRA_VERSION_PATCHES
[lttng-tools.git] / src / bin / lttng / commands / version.c
index cf46a8cb0e32fe7f3e1b35ed1dffa43d41dd0a90..37ab106263496685f4e71a368a600af19a34b2b7 100644 (file)
 #include <common/mi-lttng.h>
 
 #include "../command.h"
+#include "version.h"
+
+#ifdef LTTNG_EMBED_HELP
+static const char help_msg[] =
+#include <lttng-version.1.h>
+;
+#endif
 
 enum {
        OPT_HELP = 1,
@@ -152,8 +159,17 @@ int cmd_version(int argc, const char **argv)
                MSG("lttng version " VERSION " - " VERSION_NAME "%s",
                        GIT_VERSION[0] == '\0' ? "" : " - " GIT_VERSION);
                MSG("\n" VERSION_DESCRIPTION "\n");
-               MSG("Web site: http://lttng.org");
+               MSG("Web site: https://lttng.org");
                MSG("\n%s", lttng_license);
+               if (EXTRA_VERSION_NAME[0] != '\0') {
+                       MSG("\nExtra version name: " EXTRA_VERSION_NAME);
+               }
+               if (EXTRA_VERSION_DESCRIPTION[0] != '\0') {
+                       MSG("\nExtra version description:\n\t" EXTRA_VERSION_DESCRIPTION);
+               }
+               if (EXTRA_VERSION_PATCHES[0] != '\0') {
+                       MSG("\nExtra version patches:\n\t" EXTRA_VERSION_PATCHES);
+               }
        }
 
 end:
This page took 0.023513 seconds and 4 git commands to generate.