bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint.mk: extract GPG key ID without using a temporary file


From: Jim Meyering
Subject: [PATCH] maint.mk: extract GPG key ID without using a temporary file
Date: Tue, 08 Nov 2011 10:46:58 +0100

FYI, here's a small improvement to the release process:

>From 103bb35a244bc08ec657bac05a0a1d429d651f45 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 8 Nov 2011 10:44:54 +0100
Subject: [PATCH] maint.mk: extract GPG key ID without using a temporary file

* top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
without using a temporary file.  Based on a suggestion from Werner Koch
in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
---
 ChangeLog    |    7 +++++++
 top/maint.mk |    6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1761f56..6efe313 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-07  Jim Meyering  <address@hidden>
+
+       maint.mk: extract GPG key ID without using a temporary file
+       * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
+       without using a temporary file.  Based on a suggestion from Werner Koch
+       in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
+
 2011-11-07  Eric Blake  <address@hidden>

        grantpt: fix typo
diff --git a/top/maint.mk b/top/maint.mk
index 405c6d0..d2f5830 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1203,9 +1203,9 @@ bootstrap-tools ?= autoconf,automake,gnulib
 # If it's not already specified, derive the GPG key ID from
 # the signed tag we've just applied to mark this release.
 gpg_key_ID ?= \
-  $$(git cat-file tag v$(VERSION) > .ann-sig \
-     && gpgv .ann-sig - < /dev/null 2>&1 \
-         | sed -n '/.*key ID \([0-9A-F]*\)/s//\1/p'; rm -f .ann-sig)
+  $$(git cat-file tag v$(VERSION) \
+     | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null \
+     | sed -n '/^\[GNUPG:\] ERRSIG /{s///;s/ .*//p;q}')

 translation_project_ ?= address@hidden

--
1.7.8.rc0.46.g5ae0f



reply via email to

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