summaryrefslogtreecommitdiff
path: root/m4/efl.m4
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2017-08-07 14:41:29 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2017-08-07 14:41:29 +0200
commitbc096cddfbff9464b31a10916f81dee72fa10c1c (patch)
tree6ad59ec3f35b6c2852b15b84ff5589416409fd1c /m4/efl.m4
parent4d2117ef2a5344d298dfa7768d01feab0cf86558 (diff)
Allow to override build date
Summary: Allow to override build date for distribution packages that use autoreconf to recreate the configure script See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. Note: This patch will work with GNU date. If BSD date support is important, a more complex patch needs to be done. http://rb.zq1.de/compare.factory-20170713/efl-compare.out also shows other diffs in .edj files that still remain @fix T5495 Reviewers: cedric Subscribers: stefan_schmidt, jayji, netstar, jpeg Maniphest Tasks: T5495 Differential Revision: https://phab.enlightenment.org/D5023
Diffstat (limited to '')
-rw-r--r--m4/efl.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index 1fb49b9255..a8ca42775e 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -26,7 +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_time], m4_esyscmd([(git log --format=%ci -1 2>/dev/null || date -u -d@${SOURCE_DATE_EPOCH:-$(date +%s)} "+%Y-%m-%d %H:%M:%S %z") | tr -d '\n']))dnl
30m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl 30m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl
31m4_define([v_rel], [])dnl 31m4_define([v_rel], [])dnl
32m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl 32m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl