bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add license to link-warning.h


From: Eric Blake
Subject: Re: add license to link-warning.h
Date: Wed, 9 Dec 2009 17:56:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Bruno Haible <bruno <at> clisp.org> writes:

> 
> The empty line after the copyright header was intended to be removed as well.
> This appears to require two sed pipes in a row.

Plus a useless use of cat, for a total of 3 processes?  Come on, we can do 
better than that.  A single sed process is sufficient, by rephrasing the 
problem (rather than what do we want to exclude, it should be what we want to 
include).

>   link-warning.h: $(top_srcdir)/build-aux/link-warning.h
>       $(AM_V_GEN)rm -f address@hidden $@ && \
> !     cat $(top_srcdir)/build-aux/link-warning.h \
> !       | sed -e '1,/www\.gnu\.org\/licenses/d' | sed -e '1d' \
> !       > address@hidden && \
>       mv address@hidden $@

sed -n '/GL_LINK_WARNING/,$$ p' $(top_srcdir)/build-aux/link-warning.h > 
address@hidden

(with the address range terminator $ already escaped for Makefile.am)

-- 
Eric Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]