From a7f94464817dcc9bf86761b6480149c9230128b2 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 9 Dec 2009 16:11:27 -0700 Subject: [PATCH] link-warning: optimize generation Avoid a useless use of cat. * modules/link-warning (Makefile.am): Reduce process usage. Signed-off-by: Eric Blake --- ChangeLog | 9 +++++++-- modules/link-warning | 5 ++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01b91e489..6b592e49b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,15 @@ +2009-12-09 Eric Blake + + link-warning: optimize generation + * modules/link-warning (Makefile.am): Reduce process usage. + 2009-12-09 Bruno Haible * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a workaround was added on 2009-11-17. 2009-12-09 Jim Meyering - Bruno Haible + Bruno Haible link-warning: Allow extra lines at the top of build-aux/link-warning.h. * modules/link-warning (Makefile.am): Make the comment-removing sed @@ -16,7 +21,7 @@ most one group. 2009-12-09 Simon Josefsson - Bruno Haible + Bruno Haible * build-aux/link-warning.h: Add copyright notice. * modules/link-warning (Makefile.am): Generate link-warning.h from diff --git a/modules/link-warning b/modules/link-warning index 970ad5536..daf3d477b 100644 --- a/modules/link-warning +++ b/modules/link-warning @@ -14,9 +14,8 @@ BUILT_SOURCES += link-warning.h # build-aux/link-warning.h, except that it has the copyright header cut off. link-warning.h: $(top_srcdir)/build-aux/link-warning.h $(AM_V_GEN)rm -f $@-t $@ && \ - cat $(top_srcdir)/build-aux/link-warning.h \ - | sed -e '1,/www\.gnu\.org\/licenses/d' | sed -e '1d' \ - > $@-t && \ + sed -n '/GL_LINK_WARNING/,$$p' \ + $(top_srcdir)/build-aux/link-warning.h > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += link-warning.h link-warning.h-t -- 2.11.0