changeset 16874:d9a5a5ebbcbd

maint.mk: gpg_key_ID: use sed more portably * top/maint.mk (gpg_key_ID): End sed block with a semicolon before the closing brace. (refresh-po): Fuse two sed invocations into one.
author Akim Demaille <akim@lrde.epita.fr>
date Wed, 23 May 2012 10:38:54 +0200
parents d3ae42d4a75f
children 4d9281e52998
files ChangeLog top/maint.mk
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
+
+	maint.mk: gpg_key_ID: use sed more portably
+	* top/maint.mk (gpg_key_ID): End sed block with a semicolon before
+	the closing brace.
+	(refresh-po): Fuse two sed invocations into one.
+
 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
 
 	gitlog-to-changelog: support the log message format used in Bison.
--- 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}')
+     | sed -n '/^\[GNUPG:\] ERRSIG /{s///;s/ .*//p;q;}')
 
 translation_project_ ?= coordinator@translationproject.org
 
@@ -1414,7 +1414,7 @@
 	wget --no-verbose --directory-prefix $(PODIR) --no-directories --recursive --level 1 --accept .po --accept .po.1 $(POURL) && \
 	echo 'en@boldquot' > $(PODIR)/LINGUAS && \
 	echo 'en@quot' >> $(PODIR)/LINGUAS && \
-	ls $(PODIR)/*.po | sed 's/\.po//' | sed 's,$(PODIR)/,,' | sort >> $(PODIR)/LINGUAS
+	ls $(PODIR)/*.po | sed 's/\.po//;s,$(PODIR)/,,' | sort >> $(PODIR)/LINGUAS
 
  # Running indent once is not idempotent, but running it twice is.
 INDENT_SOURCES ?= $(C_SOURCES)