summaryrefslogtreecommitdiff
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
parent7510a2a9eeb2c4f2b9c12788bb6f4c0175655ed1 (diff)
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 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 7c2fc41..1fb49b9 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -26,6 +26,7 @@ m4_define([v_maj], [$1])dnl
26m4_define([v_min], [$2])dnl 26m4_define([v_min], [$2])dnl
27m4_define([v_mic], [$3])dnl 27m4_define([v_mic], [$3])dnl
28m4_define([dev_version], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl 28m4_define([dev_version], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
29m4_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
29m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl 30m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl
30m4_define([v_rel], [])dnl 31m4_define([v_rel], [])dnl
31m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl 32m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl
@@ -102,12 +103,14 @@ AC_DEFINE_UNQUOTED([VMAJ], [v_maj], [Major version])dnl
102AC_DEFINE_UNQUOTED([VMIN], [v_min], [Minor version])dnl 103AC_DEFINE_UNQUOTED([VMIN], [v_min], [Minor version])dnl
103AC_DEFINE_UNQUOTED([VMIC], [v_mic], [Micro version])dnl 104AC_DEFINE_UNQUOTED([VMIC], [v_mic], [Micro version])dnl
104AC_DEFINE_UNQUOTED([VREV], [v_rev], [Revison])dnl 105AC_DEFINE_UNQUOTED([VREV], [v_rev], [Revison])dnl
106AC_DEFINE([VTIME], ["v_time"], [Last source reconfigure])dnl
105VMAJ=v_maj 107VMAJ=v_maj
106VMIN=v_min 108VMIN=v_min
107VMIC=v_mic 109VMIC=v_mic
108AC_SUBST([VMAJ])dnl 110AC_SUBST([VMAJ])dnl
109AC_SUBST([VMIN])dnl 111AC_SUBST([VMIN])dnl
110AC_SUBST([VMIC])dnl 112AC_SUBST([VMIC])dnl
113AC_SUBST([VTIME])dnl
111dnl 114dnl
112dnl TODO: warning - lt_cur: 115dnl TODO: warning - lt_cur:
113dnl the previous code assumed v_maj + v_min, but this will be a problem when 116dnl the previous code assumed v_maj + v_min, but this will be a problem when