Read version info from VERSION file

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-02-23 11:47:05 +01:00
parent 228f2bf61c
commit e5062a22d8
5 changed files with 14 additions and 4 deletions

View File

@ -1 +1 @@
1.3.7 1.3.8

7
configure vendored
View File

@ -4513,6 +4513,13 @@ _ACEOF
fi fi
read -r version < VERSION
cat >>confdefs.h <<_ACEOF
#define VERSION "$version"
_ACEOF
# Check whether --with-piler-user was given. # Check whether --with-piler-user was given.

View File

@ -258,6 +258,10 @@ if test z`which timeout 2>/dev/null` != "z"; then
fi fi
read -r version < VERSION
AC_DEFINE_UNQUOTED(VERSION, "$version")
dnl user running piler dnl user running piler
AC_ARG_WITH(piler-user, AC_ARG_WITH(piler-user,

View File

@ -2,6 +2,8 @@
* piler-config.h.in, SJ * piler-config.h.in, SJ
*/ */
#define VERSION "x.x.x"
#define CONFDIR "/usr/local/etc" #define CONFDIR "/usr/local/etc"
#define DATADIR "/usr/local/var" #define DATADIR "/usr/local/var"
#define DATAROOTDIR "/usr/local/share" #define DATAROOTDIR "/usr/local/share"
@ -29,4 +31,3 @@
#undef HAVE_TWEAK_SENT_TIME #undef HAVE_TWEAK_SENT_TIME
#undef HAVE_SUPPORT_FOR_COMPAT_STORAGE_LAYOUT #undef HAVE_SUPPORT_FOR_COMPAT_STORAGE_LAYOUT

View File

@ -9,8 +9,6 @@
#include "piler-config.h" #include "piler-config.h"
#include "params.h" #include "params.h"
#define VERSION "1.3.6"
#define BUILD 998 #define BUILD 998
#define HOSTID "mailarchiver" #define HOSTID "mailarchiver"