From 7e1758666e3f5362588ae32dea6a2e22fbbef6e4 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Thu, 14 Jan 2021 18:15:00 -0500 Subject: [PATCH] Honour SOURCE_DATE_EPOCH for VERSION default --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 548e248a20..c247da8960 100644 --- a/SConstruct +++ b/SConstruct @@ -96,8 +96,8 @@ default_doctype = 'html' if defenv.WhereIs('hhc', os.environ['PATH']): default_doctype = 'chm' -from time import strftime, gmtime -cvs_version = strftime('%d-%b-%Y.cvs', gmtime()) +import time +cvs_version = time.strftime('%d-%b-%Y.cvs', time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))) opts = Variables()