diff options
author | Jim Meyering <jim@meyering.net> | 2002-07-20 14:24:29 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-07-20 14:24:29 +0000 |
commit | a82d360478f83f7dc095176e25f8af0c2274b680 (patch) | |
tree | 9415e8fe0ec1a3d34b25021a13964e19ed5f1b27 | |
parent | bfe17c403d0aba8a6af3f5777a60b87f75cc3dd3 (diff) | |
download | coreutils-a82d360478f83f7dc095176e25f8af0c2274b680.tar.xz |
(news-r1, news-r2): Define. Better regexp.
(announcement): Use them here. Also makes the line length < 80.
-rw-r--r-- | Makefile.maint | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint index 9f9f7465d..825974d9f 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -225,6 +225,9 @@ rel-check: prev-tgz = $(PACKAGE)-$(PREV_VERSION).tar.gz xd-delta = $(PACKAGE)-$(PREV_VERSION)-$(VERSION).xdelta +news-r1 = /^[^ ].*$(THIS_VERSION_REGEXP)[]:]/ +news-r2 = /^[^ ].*$(PREV_VERSION_REGEXP)[]:]/ + rel-files = $(xd-delta) $(distdir).tar.bz2 $(distdir).tar.gz announcement: NEWS ChangeLog $(rel-files) @( \ @@ -253,7 +256,7 @@ announcement: NEWS ChangeLog $(rel-files) echo "$(xdelta-sha1) $(xd-delta)"; \ echo; \ echo NEWS:; \ - sed -n "/$(THIS_VERSION_REGEXP)[]:]/,/$(PREV_VERSION_REGEXP)[]:]/p" NEWS \ + sed -n "$(news-r1),(news-r2)p" NEWS \ | grep -v '^\['; \ echo; \ echo ChangeLog entries:; \ |