From: Jim Meyering <meyering@redhat.com>
Date: Thu, 24 May 2012 08:22:29 +0000 (+0200)
Subject: maint.mk: compute $(gpg_key_ID) more portably
X-Git-Tag: v0.1~648
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=94a6552defb0ff9572dc33264018ae622f6e208d;p=gnulib.git

maint.mk: compute $(gpg_key_ID) more portably

* top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
That use of sed is not portable to some fringe systems.
Reported by Paul Eggert in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
---

diff --git a/ChangeLog b/ChangeLog
index 5296ce5d9d..686228ca07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-05-24  Jim Meyering  <meyering@redhat.com>
+
+	maint.mk: compute $(gpg_key_ID) more portably
+	* top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
+	That use of sed is not portable to some fringe systems.
+	Reported by Paul Eggert in
+	http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
+
 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
 
 	mktime: sync from glibc
diff --git a/top/maint.mk b/top/maint.mk
index 8cea95b259..9746410771 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1234,7 +1234,7 @@ bootstrap-tools ?= autoconf,automake,gnulib
 gpg_key_ID ?= \
   $$(git cat-file tag v$(VERSION) \
      | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null \
-     | sed -n '/^\[GNUPG:\] ERRSIG /{s///;s/ .*//p;q;}')
+     | awk '/^\[GNUPG:\] ERRSIG / {print $3; exit}')
 
 translation_project_ ?= coordinator@translationproject.org