Skip to content

Commit

Permalink
Replace faketime with SOURCE_DATE_EPOCH for docs
Browse files Browse the repository at this point in the history
On Debian some architectures don't support using the faketime wrapper and
it will simply bail out. Turns out pdflatex now natively supports
SOURCE_DATE_EPOCH though as long as you also set FORCE_SOURCE_DATE,
otherwise it won't take effect. Graphviz (dot) also supports the former.
  • Loading branch information
DanielG committed Sep 23, 2023
1 parent d4d9516 commit 9f66482
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ dots: $(DOT_PDF)
tex: $(TEX_PDF)
svg: $(SVG_OUTPUT)

export FORCE_SOURCE_DATE ?= 1
export SOURCE_DATE_EPOCH ?= 1640991600
#^ 2022-01-01 00:00:00

011/%.pdf: $(DOT_LOC)/%.dot
faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $<
dot -Tpdf -o $@ $<

011/%.pdf: 011/%.tex
cd 011 && faketime -f '2022-01-01 00:00:00 x0,001' pdflatex $(<F) --interaction=nonstopmode
cd 011 && pdflatex $(<F) --interaction=nonstopmode

%.pdf: %.tex
pdflatex $< --interaction=nonstopmode
Expand Down

0 comments on commit 9f66482

Please sign in to comment.