Mercurial > hg > octave-lyh > gnulib-hg
changeset 12414:8885cbc8bfe0
link-warning: optimize generation
Avoid a useless use of cat.
* modules/link-warning (Makefile.am): Reduce process usage.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Wed, 09 Dec 2009 16:11:27 -0700 |
parents | ad699b96bf6b |
children | 8f89d8947295 |
files | ChangeLog modules/link-warning |
diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,15 @@ +2009-12-09 Eric Blake <ebb9@byu.net> + + link-warning: optimize generation + * modules/link-warning (Makefile.am): Reduce process usage. + 2009-12-09 Bruno Haible <bruno@clisp.org> * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a workaround was added on 2009-11-17. 2009-12-09 Jim Meyering <meyering@redhat.com> - Bruno Haible <bruno@clisp.org> + Bruno Haible <bruno@clisp.org> 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 <simon@josefsson.org> - Bruno Haible <bruno@clisp.org> + Bruno Haible <bruno@clisp.org> * build-aux/link-warning.h: Add copyright notice. * modules/link-warning (Makefile.am): Generate link-warning.h from
--- 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