guix-commits
[Top][All Lists]
Advanced

[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: Sat, 13 Apr 2024 05:44:51 -0400 (EDT)

janneke pushed a commit to branch wip-tarball
in repository guix.

commit d1d8023cd271352d84ba0c58912975afd82e71d3
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 a7bcd29bee..ad6855d91c 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:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]