Repository: wicket Updated Branches: refs/heads/wicket-6.x a4188f483 -> 8745a57c8
Added script code to generate the annunce md file for site Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/b86e4c0b Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/b86e4c0b Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/b86e4c0b Branch: refs/heads/wicket-6.x Commit: b86e4c0bc081c46c8c9fc4b05a86972bd3f42586 Parents: a4188f4 Author: Andrea Del Bene <adelb...@apache.org> Authored: Sun Jul 2 20:12:56 2017 +0200 Committer: Andrea Del Bene <adelb...@apache.org> Committed: Sun Jul 2 20:12:56 2017 +0200 ---------------------------------------------------------------------- release.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/b86e4c0b/release.sh ---------------------------------------------------------------------- diff --git a/release.sh b/release.sh index 687d7f6..4fc97ca 100755 --- a/release.sh +++ b/release.sh @@ -261,6 +261,22 @@ Have fun! git add release-announce.txt } +function generate_announce_md { + +echo $'---\nlayout: post\ntitle: Apache Wicket' $version $'released\n---' > wicket-$version-released.md +sed -e "s/$optionOpenTag/\{\% highlight xml\%\}\n$optionOpenTag/g" release-announce.txt | +sed -e "s/$optionCloseTag/$optionCloseTag\n\{\% endhighlight\%\}/g" | +sed -e s/' \*'/' \*'/g | +sed -e "s/ CHANGELOG for $version/### This Release\n\n#### CHANGELOG for $version/g" | +sed -e s/'\*\*'/'#####'/g | +sed -e "s/ $beginPgp/<div class='highlight'><pre>\n$beginPgp/g" | +sed -e "s/$endPgp/$endPgp\n<\/pre><\/div>\n/g" | +sed -e "s/Source: http:\/\/www.apache.org\/dyn\/closer.cgi\/wicket\/$version/Source: [$version source download]\(http:\/\/www.apache.org\/dyn\/closer.cgi\/wicket\/$version\)/g" | +sed -e "s/Binary: http:\/\/www.apache.org\/dyn\/closer.cgi\/wicket\/$version\/binaries/Binary: [$version binary download]\(http:\/\/www.apache.org\/dyn\/closer.cgi\/wicket\/$version\/binaries\)/g" | +sed -e "s/Upgrading from earlier versions/<!--more-->\n\nUpgrading from earlier versions/g" >> wicket-$version-released.md + +} + # the branch on which the code base lives for this version (master is # always current development version) GIT_BRANCH=wicket-6.x @@ -330,6 +346,11 @@ minor_version=$(expr $current_version : '.*\.\(.*\)\..*\-.*') bugfix_version=$(expr $current_version : '.*\..*\.\(.*\)-.*') version="$major_version.$minor_version.0" +optionOpenTag='<dependency>' +optionCloseTag='<\/dependency>' +beginPgp='-----BEGIN PGP SIGNATURE-----' +endPgp='-----END PGP SIGNATURE-----' + default_version="$version" version= @@ -550,6 +571,8 @@ popd generate_signatures_from_release generate_release_vote_email generate_announce_email +generate_announce_md + # Done with the tasks, now print out the next things the release manager # needs to do