[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/13: maint: Reset CreationDate metadata on generated PDFs.
From: |
guix-commits |
Subject: |
12/13: maint: Reset CreationDate metadata on generated PDFs. |
Date: |
Mon, 8 Apr 2024 14:46:40 -0400 (EDT) |
janneke pushed a commit to branch wip-tarball
in repository guix.
commit de5018de13345e9e5db5d67cde5731c942bd9ae1
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sat Apr 6 19:20:33 2024 +0200
maint: Reset CreationDate metadata on generated PDFs.
* doc/local.mk (.dot.pdf): Create PDF in UTC0 and reset CreationDate
metadata.
Change-Id: I3873ecdeec781c30874d53d032406cbe23922a25
---
doc/local.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/local.mk b/doc/local.mk
index 569d20c5cb..72f80bb511 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:
- branch wip-tarball created (now 0e30532462), guix-commits, 2024/04/08
- 01/13: doc: Use "dejavu sans" instead of "Helvetica" or "sans" in dot images., guix-commits, 2024/04/08
- 08/13: maint: Use xgettext.scm wrapper to create .PO files reproducibly., guix-commits, 2024/04/08
- 02/13: maint: Cater for running `make dist' from a worktree., guix-commits, 2024/04/08
- 04/13: maint: Generate 'doc/version.texi' reproducibly., guix-commits, 2024/04/08
- 05/13: maint: Help help2man generate reproducible man-pages., guix-commits, 2024/04/08
- 10/13: maint: Avoid EPS generation to fail silently, ensure reproducibility., guix-commits, 2024/04/08
- 12/13: maint: Reset CreationDate metadata on generated PDFs.,
guix-commits <=
- 11/13: maint: Avoid PNG and PDF generation to fail silently., guix-commits, 2024/04/08
- 06/13: maint: Generate AUTHORS and ChangeLog reproducibly., guix-commits, 2024/04/08
- 03/13: maint: Use reproducible timestamps and name for tarball., guix-commits, 2024/04/08
- 07/13: maint: Generate 'doc/version-LANG.texi' reproducibly., guix-commits, 2024/04/08
- 09/13: maint: Use reproducible Git timestamp for POT-Creation-Date., guix-commits, 2024/04/08
- 13/13: maint: Ensure generated file reproducibility for dist., guix-commits, 2024/04/08