Jim Meyering <jim <at> meyering.net> writes:

> 
> Imagine my surprise when the immutable-news part of
> "make syntax-check" failed.

Sorry for not adjusting the hash myself.  Filtering out the copyright year is a 
good change.

>  NEWS_hash = \
>    $$(sed -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
> -     $(srcdir)/NEWS | md5sum -)
> +     $(srcdir)/NEWS | grep -v '^Copyright .*Free Software' | md5sum -)

Is it worth saving a process here, by folding the grep -v into the sed?

NEWS_hash = \
  $$(sed -n 's/^Copyright .*Free Software.*//; \
     /^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
     $(srcdir)/NEWS | md5sum -)

-- 
Eric Blake





_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to