diff options
author | Ron Yorston <rmy@pobox.com> | 2015-06-23 09:41:21 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-06-23 09:41:21 +0100 |
commit | f7c0538b3abe28167855ea40001b40702ef8ddf9 (patch) | |
tree | a6af0100c0fa63a690d40c8f112543b32f80b7f2 /libbb | |
parent | 54963f9e895f9b58333470bbc5854d474d24ddde (diff) | |
download | busybox-w32-f7c0538b3abe28167855ea40001b40702ef8ddf9.tar.gz busybox-w32-f7c0538b3abe28167855ea40001b40702ef8ddf9.tar.bz2 busybox-w32-f7c0538b3abe28167855ea40001b40702ef8ddf9.zip |
libbb: add details of build environment to banner
If the environment variable MINGW_VERSION is set print its contents
on a line after the BusyBox version string.
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 54f6c2c83..eafc5fce8 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -635,6 +635,12 @@ static int busybox_main(char **argv) | |||
635 | dup2(1, 2); | 635 | dup2(1, 2); |
636 | full_write2_str(bb_banner); /* reuse const string */ | 636 | full_write2_str(bb_banner); /* reuse const string */ |
637 | full_write2_str(" multi-call binary.\n"); /* reuse */ | 637 | full_write2_str(" multi-call binary.\n"); /* reuse */ |
638 | #if ENABLE_PLATFORM_MINGW32 | ||
639 | if ((a=getenv("MINGW_VERSION"))) { | ||
640 | full_write2_str(a); | ||
641 | full_write2_str("\n\n"); | ||
642 | } | ||
643 | #endif | ||
638 | full_write2_str( | 644 | full_write2_str( |
639 | "BusyBox is copyrighted by many authors between 1998-2015.\n" | 645 | "BusyBox is copyrighted by many authors between 1998-2015.\n" |
640 | "Licensed under GPLv2. See source distribution for detailed\n" | 646 | "Licensed under GPLv2. See source distribution for detailed\n" |