changeset 16878:0036a8da5e45

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
author Jim Meyering <meyering@redhat.com>
date Thu, 24 May 2012 10:22:29 +0200
parents c01778431ed2
children 29f5ac75cf9e
files ChangeLog top/maint.mk
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1234,7 +1234,7 @@
 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