From 3e50aaff716e4568eef88be07aab78a20a97649a Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 15 Sep 2008 21:23:26 +0200 Subject: [PATCH] Add script for preparing release announcements --- contrib/announcement.sh | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 contrib/announcement.sh 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 <