Skip to content

Commit

Permalink
version: add version banner
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Dec 22, 2023
1 parent 34a2cd0 commit 0b20f00
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions include/fluent-bit/flb_version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,28 @@
#define FLB_VERSION_STR "@FLB_VERSION_STR@"
#define FLB_GIT_HASH "@FLB_GIT_HASH@"

static unsigned char tree_txt[] = {
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x20, 0x7c, 0x7c, 0x20,
0x2f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x2a,
0x2a, 0x20, 0x3d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x2f, 0x5f, 0x5f, 0x5c, 0x20, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x20, 0x20, 0x20, 0x20,
0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x20,
0x20, 0x20, 0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5f, 0x5c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x20, 0x20, 0x20, 0x2f,
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5c, 0x0a, 0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x46, 0x6c, 0x75, 0x65, 0x6e,
0x74, 0x20, 0x42, 0x69, 0x74, 0x5f, 0x5f, 0x5c, 0x0a, 0x20, 0x2f, 0x5f,
0x5f, 0x7c, 0x5f, 0x5f, 0x76, 0x32, 0x2e, 0x32, 0x2e, 0x31, 0x5f, 0x7c,
0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x2f, 0x5f, 0x5f, 0x5f, 0x5c, 0x5f, 0x5f,
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7c, 0x7c,
0x7c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7c, 0x7c,
0x7c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x3d, 0x3d,
0x3d, 0x3d, 0x0a, 0x0a,
};

static inline void flb_version()
{
#ifdef FLB_NIGHTLY_BUILD
Expand Down Expand Up @@ -85,6 +107,7 @@ static inline void flb_version_banner()
fprintf(stderr, "* Fluent Bit is a CNCF sub-project under the "
"umbrella of Fluentd\n");
fprintf(stderr, "* https://fluentbit.io\n\n");
fprintf(stderr, "%s", tree_txt);
}

#endif

0 comments on commit 0b20f00

Please sign in to comment.