aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-01 12:27:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-01 12:27:02 +0000
commit9e49d2cb1f2045d6a8caf712bc2bdeb2f57aff25 (patch)
treee2457f337d2618594829930563ca17fa915dbe79 /config.h.in
parent98ac7cd6811408be9b8dd7bc8f1c58a3851538dd (diff)
downloadrspamd-9e49d2cb1f2045d6a8caf712bc2bdeb2f57aff25.tar.gz
rspamd-9e49d2cb1f2045d6a8caf712bc2bdeb2f57aff25.zip
[Feature] Add rspamd_version function to LUA API
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 7e407ba64..db1a63d97 100644
--- a/config.h.in
+++ b/config.h.in
@@ -183,12 +183,23 @@
#define RSPAMD_WWWDIR "${WWWDIR}"
#define RSPAMD_PREFIX "${CMAKE_INSTALL_PREFIX}"
+#define RSPAMD_VERSION_MAJOR "${RSPAMD_VERSION_MAJOR}"
+#define RSPAMD_VERSION_MINOR "${RSPAMD_VERSION_MINOR}"
+#define RSPAMD_VERSION_PATCH "${RSPAMD_VERSION_PATCH}"
+
+#define RSPAMD_VERSION_MAJOR_NUM ${RSPAMD_VERSION_MAJOR_NUM}
+#define RSPAMD_VERSION_MINOR_NUM ${RSPAMD_VERSION_MINOR_NUM}
+#define RSPAMD_VERSION_PATCH_NUM ${RSPAMD_VERSION_PATCH_NUM}
+
+#define RSPAMD_VERSION_BRANCH "${RSPAMD_VERSION_MAJOR}.${RSPAMD_VERSION_MINOR}"
#if defined(GIT_VERSION) && GIT_VERSION == 1
# define RVERSION "${RSPAMD_VERSION}"
+# define RSPAMD_VERSION_FULL "${RSPAMD_VERSION}_${RSPAMD_ID}"
# 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 RSPAMD_VERSION_FULL "${RSPAMD_VERSION}"
# 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"