Merge branch 't/gvf'
[paraslash.git] / version.h
1 #include "git-version.h"
2 /** Version text used by various commands if -V switch was given. */
3 #define VERSION_TEXT(prefix) "para_" prefix " " PACKAGE_VERSION \
4 " (" GIT_VERSION ": " CODENAME ")" "\n" \
5 "Copyright (C) 2011 Andre Noll\n" \
6 "This is free software with ABSOLUTELY NO WARRANTY." \
7 " See COPYING for details.\n" \
8 "Written by Andre Noll.\n" \
9 "Report bugs to <maan@systemlinux.org>.\n"
10
11 /** Print out \p VERSION_TEXT and exit if version flag was given. */
12 #define HANDLE_VERSION_FLAG(_prefix, _args_info_struct) \
13 if (_args_info_struct.version_given) { \
14 printf("%s", VERSION_TEXT(_prefix)); \
15 exit(EXIT_SUCCESS); \
16 }
17