ctdldump/ctdlload: add version number to banner
authorArt Cancro <ajc@citadel.org>
Tue, 6 Feb 2024 16:10:06 +0000 (11:10 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 6 Feb 2024 16:10:06 +0000 (11:10 -0500)
citadel/utils/ctdldump.c
citadel/utils/ctdlload.c

index aac23fcc8767c0d5b5207b46a230c65720322ec6..92966136ad0429d367dbf1347fe06dc970848616 100644 (file)
@@ -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
index 0bb24e25dc1865930aa7749d67b99fb7bb2aa325..a4bdb50478940fb2406b1d9d16a9a63147ae5770 100644 (file)
@@ -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