(let* ((epoch (or (tointz (getenv "SOURCE_DATE_EPOCH")) 0)) (isotime (time-string-utc epoch "%FT%T+00:00")) (pdf (file-get-string "txr-manpage.pdf")) (start (search-str pdf "....-..-..T..:..:..-..:../ `Date>@isotime`)) (assert (eql (len xml) orig-len)) (set [pdf start..end] xml) (file-put-string "txr-manpage.pdf.temp" pdf) (rename-path "txr-manpage.pdf.temp" "txr-manpage.pdf"))