aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-05-18 16:19:00 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-05-18 16:20:06 -0700
commit26d401351d920eaad848e5f09ff8b993adf97c1a (patch)
tree5b81f8ea4a1940695922c544a588839e195a498d /m4
parentelm_code: Fix crash on tabs in long lines (diff)
downloadefl-26d401351d920eaad848e5f09ff8b993adf97c1a.tar.gz
eina: fix reproductible build.
This make eina hamster depend on when configure was generated. This should only happen really when we make a new tarball for release. @fix https://phab.enlightenment.org/T5495
Diffstat (limited to 'm4')
-rw-r--r--m4/efl.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index 7c2fc416a9..1fb49b9255 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -26,6 +26,7 @@ m4_define([v_maj], [$1])dnl
m4_define([v_min], [$2])dnl
m4_define([v_mic], [$3])dnl
m4_define([dev_version], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
+m4_define([v_time], m4_esyscmd([(git log --format=%ci -1 2>/dev/null || date "+%Y-%m-%d %H:%M:%S %z") | tr -d '\n']))dnl
m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl
m4_define([v_rel], [])dnl
m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl
@@ -102,12 +103,14 @@ AC_DEFINE_UNQUOTED([VMAJ], [v_maj], [Major version])dnl
AC_DEFINE_UNQUOTED([VMIN], [v_min], [Minor version])dnl
AC_DEFINE_UNQUOTED([VMIC], [v_mic], [Micro version])dnl
AC_DEFINE_UNQUOTED([VREV], [v_rev], [Revison])dnl
+AC_DEFINE([VTIME], ["v_time"], [Last source reconfigure])dnl
VMAJ=v_maj
VMIN=v_min
VMIC=v_mic
AC_SUBST([VMAJ])dnl
AC_SUBST([VMIN])dnl
AC_SUBST([VMIC])dnl
+AC_SUBST([VTIME])dnl
dnl
dnl TODO: warning - lt_cur:
dnl the previous code assumed v_maj + v_min, but this will be a problem when