From e9fbba66dfd5c33ac39aaac5ce8407bb6a817dda Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 26 Mar 2013 23:57:44 +0100 Subject: add script x2go-release-announcement --- bin/x2go-release-announcement | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 bin/x2go-release-announcement diff --git a/bin/x2go-release-announcement b/bin/x2go-release-announcement new file mode 100755 index 0000000..50035c8 --- /dev/null +++ b/bin/x2go-release-announcement @@ -0,0 +1,59 @@ +#!/bin/bash + +# Copyright (C) 2013 by Mike Gabriel +# +# This programme 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 3 of the License, or +# (at your option) any later version. +# +# This programme 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +offset=${1:-0} +count=${2:-1} +whereami=`pwd` + +while ! test -f debian/changelog; do + cd .. +done + +project=$(basename `pwd`) +echo " +Dear all, + +the X2Go project is proud to announce the release of the X2Go +component ,,$project''. + +New gains of this version of ,,$project'' are: + + o + o + o + o Bug closures: #, # (see below) + +" + +dpkg-parsechangelog --offset $offset -c$count | sed -e 's/^Source: /X2Go Component: /' \ + -e 's/-0~x2go[0-9]//' \ + -e 's/-0$//' \ + -e 's/^Distribution: unstable/Status: RELEASE/' \ + -e 's/ unstable;/ RELEASED;/' \ + -e 's/^Distribution: UNRELEASED/Status: PREVIEW/' \ + -e 's/ UNRELEASED;/ PREVIEW;/' \ + | egrep -v "^(Urgency:|Maintainer:).*" + +echo +echo " +Regards, + +" +echo +cd "$whereami" -- cgit v1.2.3