Skip to content

Commit e8b66c0

Browse files
babelouestsjaeckel
authored andcommitted
Make build of docs reproducible
1 parent 03677d7 commit e8b66c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ docs crypt.pdf: crypt.tex
2929
rm -f crypt.pdf $(LEFTOVERS)
3030
cp crypt.tex crypt.bak
3131
touch -r crypt.tex crypt.bak
32-
(printf "%s" "\def\fixedpdfdate{"; date +'D:%Y%m%d%H%M%S%:z' -d @$$(stat --format=%Y crypt.tex) | sed "s/:\([0-9][0-9]\)$$/'\1'}/g") > crypt-deterministic.tex
32+
(printf "%s" "\def\fixedpdfdate{"; date +'D:%Y%m%d%H%M%S%:z' -u -d @$${SOURCE_DATE_EPOCH:-$$(stat --format=%Y crypt.tex)} | sed "s/:\([0-9][0-9]\)$$/'\1'}/g") > crypt-deterministic.tex
3333
printf "%s\n" "\pdfinfo{" >> crypt-deterministic.tex
3434
printf "%s\n" " /CreationDate (\fixedpdfdate)" >> crypt-deterministic.tex
3535
printf "%s\n}\n" " /ModDate (\fixedpdfdate)" >> crypt-deterministic.tex

0 commit comments

Comments
 (0)