diff --git a/VERSION b/VERSION index 3336003d..e05cb332 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.7 +1.3.8 diff --git a/configure b/configure index 0b1cc02f..639223d5 100755 --- a/configure +++ b/configure @@ -4513,6 +4513,13 @@ _ACEOF fi +read -r version < VERSION +cat >>confdefs.h <<_ACEOF +#define VERSION "$version" +_ACEOF + + + # Check whether --with-piler-user was given. diff --git a/configure.in b/configure.in index 1681f3a6..388ac8e7 100644 --- a/configure.in +++ b/configure.in @@ -258,6 +258,10 @@ if test z`which timeout 2>/dev/null` != "z"; then fi +read -r version < VERSION +AC_DEFINE_UNQUOTED(VERSION, "$version") + + dnl user running piler AC_ARG_WITH(piler-user, diff --git a/piler-config.h.in b/piler-config.h.in index 4053acc6..416831b5 100644 --- a/piler-config.h.in +++ b/piler-config.h.in @@ -2,6 +2,8 @@ * piler-config.h.in, SJ */ +#define VERSION "x.x.x" + #define CONFDIR "/usr/local/etc" #define DATADIR "/usr/local/var" #define DATAROOTDIR "/usr/local/share" @@ -29,4 +31,3 @@ #undef HAVE_TWEAK_SENT_TIME #undef HAVE_SUPPORT_FOR_COMPAT_STORAGE_LAYOUT - diff --git a/src/config.h b/src/config.h index cb23f0cc..3ec7f1bc 100644 --- a/src/config.h +++ b/src/config.h @@ -9,8 +9,6 @@ #include "piler-config.h" #include "params.h" -#define VERSION "1.3.6" - #define BUILD 998 #define HOSTID "mailarchiver"