# HG changeset patch # User Eric Blake # Date 1260400287 25200 # Node ID 8885cbc8bfe0e603f44048b22b6b0ddfcee0a51b # Parent ad699b96bf6b6fa826eb15a83e587df3e34d8bdd link-warning: optimize generation Avoid a useless use of cat. * modules/link-warning (Makefile.am): Reduce process usage. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- 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 --- a/modules/link-warning +++ b/modules/link-warning @@ -14,9 +14,8 @@ # 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