summaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2010-01-06 10:03:34 -0700
committerEric Blake <ebb9@byu.net>2010-01-06 20:20:22 -0700
commitc4b45631bce0034e4433a9f421cf16fe803c51f3 (patch)
tree9c3b7f72b57a90830ccf1104c4405089855a47b2 /top
parent654c876d285ca580043bf3074f7f66128b08bad0 (diff)
downloadgnulib-c4b45631bce0034e4433a9f421cf16fe803c51f3.tar.gz
maint.mk: ignore multi-line copyright in NEWS
The old algorithm did not work for projects like m4 that used long-hand copyright years that wrapped lines. Meanwhile, this change has no impact to single-line copyrights, like coreutils. Changing the rest of the footer, such as bumping from GFDL 1.2 to GFDL 1.3, will still require the developer to rerun 'make update-NEWS-hash' to get the hash back in sync, but that is probably less frequent. * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'top')
-rw-r--r--top/maint.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 40f306e7c3..084a177990 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -550,7 +550,8 @@ sc_const_long_option:
NEWS_hash = \
$$(sed -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
$(srcdir)/NEWS \
- | grep -v '^Copyright .*Free Software' \
+ | perl -0777 -pe \
+ 's/^Copyright.+?Free\sSoftware\sFoundation,\sInc\.\n//ms' \
| md5sum - \
| sed 's/ .*//')