If the environment variable $SOURCE_DATE_EPOCH is set, use that as the
build date.  otherwise, use the current date.

See https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal for
rationale.
---
 ui/content/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/content/Makefile b/ui/content/Makefile
index 59073a9..768b3fe 100644
--- a/ui/content/Makefile
+++ b/ui/content/Makefile
@@ -5,5 +5,6 @@
 
 all: libs
 
+SOURCE_DATE_EPOCH ?= $(shell date +%s)
 libs:
-       echo 'var EnigBuildDate="'`date +%Y%m%d-%H%M`'";' > enigmailBuildDate.js
+       echo 'var EnigBuildDate="'`TZ=UTC date +%Y%m%d-%H%M -d 
@$(SOURCE_DATE_EPOCH)`'";' > enigmailBuildDate.js;
-- 
2.1.4


_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net

Reply via email to