From: Fabian Keil <fk@fabiankeil.de>
Date: Thu, 12 Nov 2020 09:54:14 +0000 (+0100)
Subject: Only set SOURCE_DATE_EPOCH if it's not already set
X-Git-Tag: v_3_0_29~27
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/static/@default-cgi@edit-actions?a=commitdiff_plain;h=f2703aac8caa26ca628d6d6601a89bf676ebed34;p=privoxy.git

Only set SOURCE_DATE_EPOCH if it's not already set

... so distributions can overwrite it through the environment.
---

diff --git a/GNUmakefile.in b/GNUmakefile.in
index 7cf9b49f..50b10e16 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -42,7 +42,7 @@ CODE_STATUS   = @CODE_STATUS@
 VERSION       = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_POINT)
 SNAPVERSION   = $(VERSION)-$(shell date "+%Y%m%d")
 
-SOURCE_DATE_EPOCH = @SOURCE_DATE_EPOCH@
+SOURCE_DATE_EPOCH ?= @SOURCE_DATE_EPOCH@
 MTREE_SPEC_FILE = privoxy-$(VERSION)-$(CODE_STATUS).spec
 
 #############################################################################