ft_ssl/src/cli/print_version.c
2026-07-11 01:22:47 +02:00

26 lines
744 B
C

#include <stdio.h>
#include "version_gen.h"
#include "internal/dependencies.h"
void
print_version(void)
{
printf("%s version %s\n", g_prog_name, FT_SSL_VERSION);
printf("Copyright (C) 2026 lohhiicccc\n");
printf("License GPLv3+:");
printf("GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>\n");
printf("This is free software: ");
printf("you are free to change and redistribute it.\n");
printf("There is NO WARRANTY, to the extent permitted by law.\n");
#if FT_SSL_HAS_GIT_COMMIT
printf("Build: %s (commit %s)\n", FT_SSL_BUILD_DATE, FT_SSL_GIT_COMMIT);
#endif
printf("\n");
printf("\nDependencies:\n");
FOREACH_SECTION(p, const struct dep, ft_ssl_deps)
printf("%-15s %s%s\n", p->name, p->version, p->extra);
}