diff options
author | Jim Meyering <jim@meyering.net> | 1998-08-11 15:23:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-08-11 15:23:01 +0000 |
commit | c267424d7b1bc606a0275b2233962b3487f10093 (patch) | |
tree | f6d56bf03280450d763f2d3de44d66d2b86b590c /Makefile.maint | |
parent | 053a0e3a8e4ca3d60df9baf099d9ae51538eca16 (diff) | |
download | coreutils-c267424d7b1bc606a0275b2233962b3487f10093.tar.xz |
automatically generate template for test release announcement
Diffstat (limited to 'Makefile.maint')
-rw-r--r-- | Makefile.maint | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile.maint b/Makefile.maint index 134e8e34d..10101eaf9 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -42,3 +42,27 @@ my-distcheck: dist @echo "========================"; \ echo "$(distdir).tar.gz is ready for distribution"; \ echo "========================" + +THIS_VERSION_REGEXP := $(shell echo $(VERSION)|sed 's/\./\\./g') +# FIXME: this works only for test releases. +PREV_VERSION := $(shell echo $(VERSION)|tr a-z Xa-y) +PREV_VERSION_REGEXP := $(shell echo $(PREV_VERSION)|sed 's/\./\\./g') +v = Version +announcement: NEWS ChangeLog $(distdir).tar.gz + @( \ + echo Subject: $(distdir) released; \ + echo; \ + echo FIXME: put comments here; \ + echo; \ + echo " ftp://alpha.gnu.org/gnu/$(distdir).tar.gz"; \ + echo; \ + md5sum $(distdir).tar.gz; \ + echo; \ + echo NEWS:; \ + sed -n "/$(THIS_VERSION_REGEXP)/,/$(PREV_VERSION_REGEXP)/p" NEWS \ + | grep -v '^\['; \ + echo; \ + echo ChangeLog entries:; \ + sed -n "/$v $(THIS_VERSION_REGEXP)/,/$v $(PREV_VERSION_REGEXP)/p" \ + ChangeLog | grep -v '\* $v'; \ + ) |