deterministic build of poster.pdf
This commit is contained in:
parent
41017efddd
commit
da2fc240ef
13
makefile
13
makefile
|
@ -152,8 +152,19 @@ docdvi: tommath.src
|
||||||
|
|
||||||
# poster, makes the single page PDF poster
|
# poster, makes the single page PDF poster
|
||||||
poster: poster.tex
|
poster: poster.tex
|
||||||
|
cp poster.tex poster.bak
|
||||||
|
touch --reference=poster.tex poster.bak
|
||||||
|
(printf "%s" "\def\fixedpdfdate{"; date +'D:%Y%m%d%H%M%S%:z' -d @$$(stat --format=%Y poster.tex) | sed "s/:\([0-9][0-9]\)$$/'\1'}/g") > poster-deterministic.tex
|
||||||
|
printf "%s\n" "\pdfinfo{" >> poster-deterministic.tex
|
||||||
|
printf "%s\n" " /CreationDate (\fixedpdfdate)" >> poster-deterministic.tex
|
||||||
|
printf "%s\n}\n" " /ModDate (\fixedpdfdate)" >> poster-deterministic.tex
|
||||||
|
cat poster.tex >> poster-deterministic.tex
|
||||||
|
mv poster-deterministic.tex poster.tex
|
||||||
|
touch --reference=poster.bak poster.tex
|
||||||
pdflatex poster
|
pdflatex poster
|
||||||
rm -f poster.aux poster.log
|
sed -b -i 's,^/ID \[.*\]$$,/ID [<0> <0>],g' poster.pdf
|
||||||
|
mv poster.bak poster.tex
|
||||||
|
rm -f poster.aux poster.log poster.out
|
||||||
|
|
||||||
# makes the LTM book PDF file, requires tetex, cleans up the LaTeX temp files
|
# makes the LTM book PDF file, requires tetex, cleans up the LaTeX temp files
|
||||||
docs: docdvi
|
docs: docdvi
|
||||||
|
|
Loading…
Reference in New Issue