diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-04-06 19:20:33 +0200 |
---|---|---|
committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-04-14 10:29:11 +0200 |
commit | 3d8d0642da5e5982e17122ab35774f9d5dfca79b (patch) | |
tree | a3bb750813538c319ff90eab94ea278fa897a523 /doc | |
parent | abc47993eadf05deb34d23a78d3480bc934975c4 (diff) | |
download | guix-3d8d0642da5e5982e17122ab35774f9d5dfca79b.tar.gz guix-3d8d0642da5e5982e17122ab35774f9d5dfca79b.zip |
maint: Reset CreationDate metadata on generated PDFs.
* doc/local.mk (.dot.pdf): Create PDF in UTC0 and reset CreationDate metadata.
Change-Id: I3873ecdeec781c30874d53d032406cbe23922a25
Diffstat (limited to 'doc')
-rw-r--r-- | doc/local.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/local.mk b/doc/local.mk index d049dbf6d1..d18cdf3e5f 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -148,7 +148,11 @@ DOT_OPTIONS = \ $(AM_V_at)mv "$(srcdir)/$@.tmp" "$(srcdir)/$@" .dot.pdf: - $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp" + $(AM_V_DOT)set -e; export TZ=UTC0; \ + $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp" + $(AM_V_at)sed -ri \ + -e 's,(/CreationDate \(D:).*\),\119700101000000),' \ + "$(srcdir)/$@.tmp" $(AM_V_at)mv "$(srcdir)/$@.tmp" "$(srcdir)/$@" .dot.eps: |