maint.mk: compute $(gpg_key_ID) more portably
authorJim Meyering <meyering@redhat.com>
Thu, 24 May 2012 08:22:29 +0000 (10:22 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 24 May 2012 08:24:40 +0000 (10:24 +0200)
* 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

ChangeLog
top/maint.mk

index 5296ce5..686228c 100644 (file)
--- 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
index 8cea95b..9746410 100644 (file)
@@ -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