[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/12: maint: Reset CreationDate metadata on generated PDFs.
From: |
guix-commits |
Subject: |
11/12: maint: Reset CreationDate metadata on generated PDFs. |
Date: |
Sat, 6 Apr 2024 17:16:34 -0400 (EDT) |
janneke pushed a commit to branch wip-tarball
in repository guix.
commit 7d3e7ef4c6ecfa77a6b6c237165c148578443511
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 a0d94614d3..25741a5c88 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"
+ export TZ=UTC0;
\
+ $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
+ $(AM_V_at)sed -ri \
+ -e 's,(/CreationDate [(]D:)[0-9+]{14},\119700101000000,' \
+ "$(srcdir)/$@.tmp"
$(AM_V_at)mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
.dot.eps:
- 06/12: maint: Generate 'doc/version-LANG.texi' reproducibly., (continued)
- 06/12: maint: Generate 'doc/version-LANG.texi' reproducibly., guix-commits, 2024/04/06
- 07/12: maint: Use xgettext.scm wrapper to create .PO files reproducibly., guix-commits, 2024/04/06
- 02/12: maint: Use reproducible timestamps and name for tarball., guix-commits, 2024/04/06
- 03/12: maint: Generate 'doc/version.texi' reproducibly., guix-commits, 2024/04/06
- 04/12: maint: Help help2man generate reproducible man-pages., guix-commits, 2024/04/06
- 05/12: maint: Generate AUTHORS and ChangeLog reproducibly., guix-commits, 2024/04/06
- 12/12: maint: Ensure generated file reproducibility for dist., guix-commits, 2024/04/06
- 08/12: maint: Use reproducible Git timestamp for POT-Creation-Date., guix-commits, 2024/04/06
- 10/12: maint: Avoid PNG and PDF generation to fail silently., guix-commits, 2024/04/06
- 09/12: maint: Remove %%CreationDate from generated EPS files, guix-commits, 2024/04/06
- 11/12: maint: Reset CreationDate metadata on generated PDFs.,
guix-commits <=