Debian Codegraph @

texmf-dist/doc/pdftex/tests/10-moddate/Makefile

raw
1 # $Id: Makefile 808 2018-11-13 18:39:00Z karl $
2 # Public domain.
3
4 include ../Common.mak
5
6 default: test-moddate test-moddate-abs
7
8 test-moddate:
9 # regular
10 $(prog) test-moddate.tex
11 grep "D:2[0-9].*-.*'" test-moddate.log >/dev/null
12 #
13 # just one envvar, still regular.
14 SOURCE_DATE_EPOCH=1 $(prog) test-moddate.tex
15 grep "D:2[0-9].*-.*'" test-moddate.log >/dev/null
16 #
17 # both envvars, force utc.
18 FORCE_SOURCE_DATE=1 SOURCE_DATE_EPOCH=1 $(prog) test-moddate.tex
19 grep "D:2[0-9].*Z " test-moddate.log >/dev/null
20
21 test-moddate-abs:
22 # should fail due to openin_any.
23 openin_any=p $(prog) test-moddate-abs.tex
24 ! grep "D:2[0-9]" test-moddate-abs.log >/dev/null
25
26 clean:
27 $(clean)