Merge branch 't/mood_fix'
[paraslash.git] / version.h
1 /** \file version.h Macros for printing the version string. */
2
3 #include "git-version.h"
4
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"
12
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)); \
17 exit(EXIT_SUCCESS); \
18 }
19