[
https://issues.apache.org/jira/browse/HBASE-21955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16778927#comment-16778927
]
stack commented on HBASE-21955:
-------------------------------
Here's some script that may help here:
{code}
wget http://apache.claz.org/yetus/0.9.0/apache-yetus-0.9.0-bin.tar.gz
# Could check md5/signature
tar xfz apache-yetus-0.9.0-bin.tar.gz
cd apache-yetus-0.9.0/
# Needs /usr/lib/python2 in PATH -- might have to ln -s.
./bin/releasedocmaker -p HBASE --fileversions -v 2.0.5 -l --sortorder=newer
--skip-credits
# This generates RELEASENOTES.2.0.5.md and CHANGELOG.2.0.5.md
# To insert into hbase changes.md...need to cut the top off the
CHANGELOG.2.0.5.md file removing license and first line and then insert it
after the license comment.
# Here is how to trip the top
sed -i -e '/## Release/,$!d' CHANGELOG.2.0.5.md
# Now insert into hbase.git/CHANGES.md after the license
sed -i -e '/-->/r CHANGELOG.2.0.5.md' ../hbase.git/CHANGES.md
# Similar for RELEASENOTES but slightly different.
sed -i -e '/Release Notes/,$!d' RELEASENOTES.2.0.5.md
sed -i -e '/-->/r RELEASENOTES.2.0.5.md' ../hbase.git/RELEASENOTES.md
[code}
> Auto insert release changes and releasenotes in release scripts
> ---------------------------------------------------------------
>
> Key: HBASE-21955
> URL: https://issues.apache.org/jira/browse/HBASE-21955
> Project: HBase
> Issue Type: Sub-task
> Reporter: stack
> Priority: Major
>
> Should be able to script updating changes and releasenotes as part of
> create-releases/release-build.sh.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)