contrib/release.sh (v0.2): better format for announces

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-04-07 14:35:39 +02:00
parent 2c3ef50a3d
commit c8fea7ae18
2 changed files with 8 additions and 8 deletions

View File

@ -53,7 +53,6 @@ Sebastian Spaeth let us know he will be almost inactive. We wish you well, too!
- release.sh: script for maintainers improved. - release.sh: script for maintainers improved.
### OfflineIMAP v6.5.7-rc3 (2015-03-19) ### OfflineIMAP v6.5.7-rc3 (2015-03-19)
#### Notes #### Notes

View File

@ -16,7 +16,7 @@
# TODO: move configuration out and source it. # TODO: move configuration out and source it.
# TODO: implement rollback. # TODO: implement rollback.
__VERSION__='v0.1' __VERSION__='v0.2'
SPHINXBUILD=sphinx-build SPHINXBUILD=sphinx-build
@ -352,14 +352,10 @@ OfflineIMAP $1 is out.
Downloads: Downloads:
http://github.com/OfflineIMAP/offlineimap/archive/${1}.tar.gz http://github.com/OfflineIMAP/offlineimap/archive/${1}.tar.gz
http://github.com/OfflineIMAP/offlineimap/archive/${1}.zip http://github.com/OfflineIMAP/offlineimap/archive/${1}.zip
EOF EOF
} }
#
# $1: previous version
#
function announce_footer () { function announce_footer () {
cat <<EOF cat <<EOF
@ -375,9 +371,11 @@ EOF
# #
function build_announce () { function build_announce () {
announce_header "$1" > "$TMP_ANNOUNCE" announce_header "$1" > "$TMP_ANNOUNCE"
cat "$TMP_CHANGELOG_EXCERPT" >> "$TMP_ANNOUNCE" grep -v '^### OfflineIMAP' "$TMP_CHANGELOG_EXCERPT" | \
grep -v '^#### Notes' >> "$TMP_ANNOUNCE"
sed -i -r -e "s,^$ANNOUNCE_MAGIC,," "$TMP_ANNOUNCE" sed -i -r -e "s,^$ANNOUNCE_MAGIC,," "$TMP_ANNOUNCE"
announce_footer "$2" >> "$TMP_ANNOUNCE" sed -i -r -e "s,^#### ,# ," "$TMP_ANNOUNCE"
announce_footer >> "$TMP_ANNOUNCE"
} }
@ -387,6 +385,9 @@ function edit_announce () {
#
# run
#
function run () { function run () {
debug 'in run' debug 'in run'
fix_pwd fix_pwd