From patchwork Wed Apr 3 19:11:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 62679 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2A9EF27BBEA; Wed, 3 Apr 2024 20:12:45 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9C19727BBE2 for ; Wed, 3 Apr 2024 20:12:44 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rs61n-0007g5-S4; Wed, 03 Apr 2024 15:12:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rs61j-0007eR-9D for guix-patches@gnu.org; Wed, 03 Apr 2024 15:12:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rs61j-0001bc-08 for guix-patches@gnu.org; Wed, 03 Apr 2024 15:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rs61m-0001ut-Lm; Wed, 03 Apr 2024 15:12:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70169] [PATCH 6/7] maint: Use reproducible Git timestamp for POT-Creation-Date. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: pelzflorian@pelzflorian.de, julien@lepiller.eu, guix-patches@gnu.org Resent-Date: Wed, 03 Apr 2024 19:12:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70169 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70169@debbugs.gnu.org Cc: Florian Pelz , Julien Lepiller X-Debbugs-Original-Xcc: Florian Pelz , Julien Lepiller Received: via spool by 70169-submit@debbugs.gnu.org id=B70169.17121715187274 (code B ref 70169); Wed, 03 Apr 2024 19:12:06 +0000 Received: (at 70169) by debbugs.gnu.org; 3 Apr 2024 19:11:58 +0000 Received: from localhost ([127.0.0.1]:59675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs61d-0001tA-KC for submit@debbugs.gnu.org; Wed, 03 Apr 2024 15:11:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs61W-0001r4-AL for 70169@debbugs.gnu.org; Wed, 03 Apr 2024 15:11:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rs61L-00013s-Vx; Wed, 03 Apr 2024 15:11:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=7/gvstY+zOeit9YGSfTKoBpkqJ4p21aBFe+MX6ZXKzs=; b=BJ5uFF0e57LFp3PJ4hjs EHQtGS0ScrhMNbOrvClLVcJTHUe+2C/Hng7mrwEBgIOCjqzreA0jXCGRsVTMFctDRE6cGWuOcxAJn lHKvJFSzDr3WbS7aJwDxo2f6vEf/mAAz7sqdV4f5VpsetRyAY1GCRZg+wOXI520/Cc04eboJwtOom dVY8EsNb5+q8zLjQdmpcOpR51nh7IFyblX8hJqzMPt/w5OWoFjrkLPvQ+iKq/YiWSWma7BaUY1y36 0qgRY7AD1nNKjCII/IFzA+VosaZ0t23RUa7JXFkCbQ6HmXrGekvejaP4Kzg9I2eaM1wWnrHEhfeS+ xjVfFezJjAZd1g==; From: Janneke Nieuwenhuizen Date: Wed, 3 Apr 2024 21:11:08 +0200 Message-ID: <45e5e23d88c8846551c7493d3e9ab344dcb2f942.1712165977.git.janneke@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * po/doc/local.mk (%D%/%.pot): Replace POT-Creation-Date using timestamp from Git. (%D%/guix-manual.pot): Likewise. Change-Id: I1b7f8cc147084c1804deb7be9d36e5eeda2599cb --- po/doc/local.mk | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/po/doc/local.mk b/po/doc/local.mk index dd6ba30133..f68d67ec02 100644 --- a/po/doc/local.mk +++ b/po/doc/local.mk @@ -1,6 +1,7 @@ # GNU Guix --- Functional package management for GNU # Copyright © 2018 Julien Lepiller # Copyright © 2021 Maxim Cournoyer +# Copyright © 2024 Janneke Nieuwenhuizen # # This file is part of GNU Guix. # @@ -44,12 +45,19 @@ POT_OPTIONS = \ --msgid-bugs-address "bug-guix@gnu.org" %D%/%.pot: $(srcdir)/doc/%.texi - $(AM_V_PO4A)$(PO4A_UPDATEPO) -M UTF-8 -f texinfo -m "$<" \ - -p "$@" $(POT_OPTIONS) && \ - touch $@ + $(AM_V_PO4A)$(PO4A_UPDATEPO) -M UTF-8 -f texinfo -m "$<" \ + -p "$@-t" $(POT_OPTIONS) + date=$$(git log --pretty=format:%ci -n 1 -- $< 2>/dev/null \ + || echo $(SOURCE_DATE_EPOCH)) \ + sed -ri -e "s,^(.POT-Creation-Date: )[^\]*,\1$$date," $@-t + mv $@-t $@ %D%/guix-manual.pot: %D%/guix.pot %D%/contributing.pot - msgcat $^ > $@ + msgcat $^ > $@-t + date=$$(git log --pretty=format:%ci -n 1 -- $< 2>/dev/null \ + || echo $(SOURCE_DATE_EPOCH)) \ + sed -ri "s,^(.POT-Creation-Date: )[^\]*,\1$$date," $@-t + mv $@-t $@ doc-pot-update: %D%/guix-manual.pot %D%/guix-cookbook.pot .PHONY: doc-pot-update