1 /** \file version.h Macros for printing the version string. */
3 #include "git-version.h"
5 /** Version text printed by all executables if -V was given. */
6 #define VERSION_TEXT(prefix) "para_" prefix " " PACKAGE_VERSION \
7 " (" GIT_VERSION ": " CODENAME ")" "\n" \
8 "Copyright (C) 2013 Andre Noll\n" \
9 "This is free software with ABSOLUTELY NO WARRANTY." \
10 " See COPYING for details.\n" \
11 "Report bugs to <maan@systemlinux.org>.\n"
13 /** Print out \p VERSION_TEXT and exit if version flag was given. */
14 #define HANDLE_VERSION_FLAG(_prefix, _args_info_struct) \
15 if (_args_info_struct.version_given) { \
16 printf("%s", VERSION_TEXT(_prefix)); \