From 2193f56e082959d9fa55cb3d41924a69d31e9666 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Mon, 20 Jan 2003 16:15:15 +0000 Subject: [PATCH] Better sed script. --- admin/make-announcement | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/admin/make-announcement b/admin/make-announcement index 726b08c3555..3201a0108e7 100755 --- a/admin/make-announcement +++ b/admin/make-announcement @@ -62,7 +62,18 @@ Changes since $OLD EOF cvs -q diff -b -r $oldtag -r $newtag $(find -name ChangeLog|sort) | - sed -n -e 's/^=\+/ /p' -e 's/^> //p' -e 's/^diff.*//p' \ - -e 's/^RCS file: .cvsroot.emacs.emacs.\(.*\),v/\1/p' + sed -n -e 's/^=\+/======/p' -e 's/^> //p' -e 's/^diff.*//p' \ + -e 's/^RCS file: .cvsroot.emacs.emacs.\(.*\),v/\1/p' | + sed -n -e "/^======$/ { + N + N + h + d + } + H + s/.*// + x + s/^\n// + p" echo " announcement created in $outfile" >&2 -- 2.39.2