From: Art Cancro Date: Tue, 6 Feb 2024 16:10:06 +0000 (-0500) Subject: ctdldump/ctdlload: add version number to banner X-Git-Tag: v999~54 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f6a999b21a38678a1771eb5ba50d2912582acf30 ctdldump/ctdlload: add version number to banner --- diff --git a/citadel/utils/ctdldump.c b/citadel/utils/ctdldump.c index aac23fcc8..92966136a 100644 --- a/citadel/utils/ctdldump.c +++ b/citadel/utils/ctdldump.c @@ -359,13 +359,14 @@ int main(int argc, char **argv) { char *ctdldir = CTDLDIR; // display the greeting - fprintf(stderr, "\033[44m\033[1m" - "╔════════════════════════════════════════════════════════════════════════╗\n" - "║ DB Dump utility for Citadel ║\n" - "║ Copyright (c) 2023-2024 by citadel.org et al. ║\n" - "║ This program is open source software. Use, duplication, or disclosure ║\n" - "║ is subject to the terms of the GNU General Public license v3. ║\n" - "╚════════════════════════════════════════════════════════════════════════╝\033[0m\n" + fprintf(stderr, + "\033[44m\033[1m╔════════════════════════════════════════════════════════════════════════╗\033[0m\n" + "\033[44m\033[1m║ DB Dump utility for Citadel version %-4d ║\033[0m\n" + "\033[44m\033[1m║ Copyright (c) 2023-2024 by citadel.org et al. ║\033[0m\n" + "\033[44m\033[1m║ This program is open source software. Use, duplication, or disclosure ║\033[0m\n" + "\033[44m\033[1m║ is subject to the terms of the GNU General Public license v3. ║\033[0m\n" + "\033[44m\033[1m╚════════════════════════════════════════════════════════════════════════╝\033[0m\n", + REV_LEVEL ); // Parse command line diff --git a/citadel/utils/ctdlload.c b/citadel/utils/ctdlload.c index 0bb24e25d..a4bdb5047 100644 --- a/citadel/utils/ctdlload.c +++ b/citadel/utils/ctdlload.c @@ -763,11 +763,12 @@ int main(int argc, char **argv) { // display the greeting fprintf(stderr, "\033[44m\033[1m╔════════════════════════════════════════════════════════════════════════╗\033[0m\n" - "\033[44m\033[1m║ DB Load utility for Citadel ║\033[0m\n" + "\033[44m\033[1m║ DB Load utility for Citadel version %-4d ║\033[0m\n" "\033[44m\033[1m║ Copyright (c) 2023-2024 by citadel.org et al. ║\033[0m\n" "\033[44m\033[1m║ This program is open source software. Use, duplication, or disclosure ║\033[0m\n" "\033[44m\033[1m║ is subject to the terms of the GNU General Public license v3. ║\033[0m\n" - "\033[44m\033[1m╚════════════════════════════════════════════════════════════════════════╝\033[0m\n" + "\033[44m\033[1m╚════════════════════════════════════════════════════════════════════════╝\033[0m\n", + REV_LEVEL ); // Parse command line