# HG changeset patch # User Jim Meyering # Date 1260376442 -3600 # Node ID 1718a15bc893b0ff8ae60a623d96265b6e11c5e8 # Parent bff2e832acadb52614b423f289d12b033ece0395 link-warning: Allow extra lines at the top of build-aux/link-warning.h. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-12-09 Jim Meyering + 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 + command more robust in the face of bootstrap-prepended comment lines. + 2009-12-09 Bruno Haible * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at diff --git a/modules/link-warning b/modules/link-warning --- a/modules/link-warning +++ b/modules/link-warning @@ -10,9 +10,13 @@ Makefile.am: BUILT_SOURCES += link-warning.h +# The link-warning.h that gets inserted into generated .h files is the same as +# 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 $@ && \ - sed 1,17d < $(top_srcdir)/build-aux/link-warning.h > $@-t && \ + cat $(top_srcdir)/build-aux/link-warning.h \ + | sed -e '1,/www\.gnu\.org\/licenses/d' | sed -e '1d' \ + > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += link-warning.h link-warning.h-t