From: Jonas Fonseca Date: Mon, 15 Sep 2008 19:23:26 +0000 (+0200) Subject: Add script for preparing release announcements X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3e50aaff716e4568eef88be07aab78a20a97649a;p=tig.git Add script for preparing release announcements --- diff --git a/contrib/announcement.sh b/contrib/announcement.sh new file mode 100755 index 0000000..e32c979 --- /dev/null +++ b/contrib/announcement.sh @@ -0,0 +1,50 @@ +#!/bin/sh +# +# Prepare the content of the next tig release announcement. +# Usage: $0 [revision] +# +# Copyright (c) 2008 Jonas Fonseca +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +root="$(git rev-parse --show-cdup)" +NEWS="${root}NEWS" +SITES="${root}SITES" +from="$(sed -n '7,/^tig-/p' < "$NEWS" | tail -n 1 | cut -d' ' -f 1)" +to="${1-HEAD}" + +cat <