diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-12 13:34:17 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-12 13:34:17 +0000 |
commit | d54124d738a0e30d2b3b9adb1966374935ff3f46 (patch) | |
tree | 26fdb2a5582c81b865d94a12064a45a086fd35bc /config.h.in | |
parent | d8e99a0ecd83177911d10e395ee7490af91008d1 (diff) | |
download | rspamd-d54124d738a0e30d2b3b9adb1966374935ff3f46.tar.gz rspamd-d54124d738a0e30d2b3b9adb1966374935ff3f46.zip |
Add versions to rspamd modules and workers
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in index bae4efdb9..4505c87bc 100644 --- a/config.h.in +++ b/config.h.in @@ -184,11 +184,13 @@ #define RSPAMD_PREFIX "${CMAKE_INSTALL_PREFIX}" -#ifdef GIT_VERSION +#if defined(GIT_VERSION) && GIT_VERSION == 1 # define RVERSION "${RSPAMD_VERSION}" # define RID "${RSPAMD_ID}" +# define RSPAMD_VERSION_NUM 0x${RSPAMD_VERSION_MAJOR_NUM}${RSPAMD_VERSION_MINOR_NUM}${RSPAMD_VERSION_PATCH_NUM}${RSPAMD_ID}ULL #else # define RVERSION "${RSPAMD_VERSION}" +# define RSPAMD_VERSION_NUM 0x${RSPAMD_VERSION_MAJOR_NUM}${RSPAMD_VERSION_MINOR_NUM}${RSPAMD_VERSION_PATCH_NUM}0000000ULL # define RID "release" #endif |