File: source-date-epoch

package info (click to toggle)
hevea 2.36-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,780 kB
  • sloc: ml: 19,453; sh: 503; makefile: 311; ansic: 132
file content (26 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -e

rundir=${AUTOPKGTEST_TMP:-/tmp}

cd ${rundir}

cat > in.tex << EOF
\documentclass{article}
\usepackage{hevea}
\begin{document}
\heveadate
\end{document}
EOF

SOURCE_DATE_EPOCH=0 hevea -exec xxdate.exe -text in.tex 2> /dev/null
gotdate=`sed  -n -e "1 s/^ *//p" < in.txt`
if [ "$gotdate" != "Thu Jan 1 00:00:00 UTC 1970" ]; then
   echo got date $gotdate with SOURCE_DATE_EPOCH set  to 0
   exit 1
else
   echo ok
fi