Only set SOURCE_DATE_EPOCH if it's not already set
authorFabian Keil <fk@fabiankeil.de>
Thu, 12 Nov 2020 09:54:14 +0000 (10:54 +0100)
committerFabian Keil <fk@fabiankeil.de>
Wed, 18 Nov 2020 11:01:49 +0000 (12:01 +0100)
... so distributions can overwrite it through the environment.

GNUmakefile.in

index 7cf9b49..50b10e1 100644 (file)
@@ -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
 
 #############################################################################