chiark / gitweb /
Add a --verbose option.
[bin.git] / nmu-announce
1 #! /bin/sh
2 set -e
3
4 DRAFT=`tempfile`
5
6 cat >$DRAFT <<EOF
7 From: Colin Watson <cjwatson@debian.org>
8 To: $2@bugs.debian.org
9 Cc: control@bugs.debian.org
10 Subject: $1: Proposed NMU diff
11 Fcc: =debian/nmus
12
13 tags $2 patch
14 thanks
15
16 Here's a patch fixing this bug. If I don't hear anything, I'll upload
17 this as an NMU in a week or so.
18
19 EOF
20
21 if [ -n "$4" ]; then
22     debdiff $3 $4 >>$DRAFT
23 else
24     cat $3 >>$DRAFT
25 fi
26
27 cat >>$DRAFT <<EOF
28
29 Regards,
30 EOF
31
32 mutt -H $DRAFT
33
34 rm -f $DRAFT
35
36 exit 0