Skip to content

Commit e4282ac

Browse files
eworm-dederf
authored andcommitted
make the build (man page) reproducible
1 parent 0d44364 commit e4282ac

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

config.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ else
104104
MAN_INOTIFY = disabled
105105
endif
106106

107-
MAN_DATE ?= ${shell date '+%B %d, %Y'}
107+
# The environment variable SOURCE_DATE_EPOCH is used by build environments
108+
# to produce reproducible binary builds. In fact you can set both manually,
109+
# SOURCE_DATE_EPOCH and MAN_DATE.
110+
SOURCE_DATE_EPOCH ?= $(shell date +%s)
111+
MAN_DATE ?= ${shell date --utc --date=@$(SOURCE_DATE_EPOCH) '+%B %d, %Y'}
108112

109113
# Uncomment this to use dmalloc
110114
#CFLAGS += -DWITH_DMALLOC

0 commit comments

Comments
 (0)