docs: set date to SOURCE_DATE_EPOCH if available
authorMaximilian Engelhardt <maxi@daemonizer.de>
Fri, 18 Dec 2020 20:42:35 +0000 (21:42 +0100)
committerHans van Kranenburg <hans@knorrie.org>
Mon, 17 Jan 2022 17:39:09 +0000 (18:39 +0100)
commit2f68f0e5a17cbe36c2f4d853cb5ffc5a66f618f8
tree1703ec3427d96fd46fe5088bf92f3649699fe8b4
parentc6f858a31a69f983fe9bd13bd0cacc10ae8d3c52
docs: set date to SOURCE_DATE_EPOCH if available

Use the solution described in [1] to replace the call to the 'date'
command with a version that uses SOURCE_DATE_EPOCH if available. This
is needed for reproducible builds.

[1] https://reproducible-builds.org/docs/source-date-epoch/

Signed-off-by: Maximilian Engelhardt <maxi@daemonizer.de>
[Hans van Kranenburg]
Note: this patch is submitted upstream but not committed yet. We
expect that it gets in. Otherwise, we don't wait and already have it
here because I want to have the reproducible build work completed.
docs/Makefile