summaryrefslogtreecommitdiff
path: root/bin/x2go-release-announcement
blob: ae0ba3a61c3270c997d85de66343fde7c5e026cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash

# Copyright (C) 2013 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
#
# 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 "
Subject: $project (<ver>) released

Dear all

The X2Go project is proud to announce a new release of the X2Go
component ,,$project''.

New gains of this version of ,,$project'' are:

  o <gain-1>
  o <gain-2>
  o <gain-3>

"

cat debian/changelog | sed -e 's/Fixes:/Closes:/i' | dpkg-parsechangelog --offset $offset -c$count -l- | \
	                sed -r \
                            -e 's/^Closes:/Fixes these bug report(s):/i' \
	                    -e 's/Closes:/Fixes:/i' \
	                    -e 's/^Source: /X2Go Component: /' \
	                    -e 's/-0~x2go[0-9]//' \
	                    -e 's/-0x2go[0-9]//' \
	                    -e 's/-0$//' \
	                    -e "s/^\ $project\ \([0-9]*:([0-9\.]*)\)/\ $project \(\1\)/g" \
	                    -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,



<release-manager>
"
echo
cd "$whereami"