3
# vim:ts=4:noet:wrap:sts=4:sw=4:
4
# $Id: dobuildlog,v 1.1.1.1 2004/09/17 13:17:41 frankie Exp $
5
# Rick Younie <rick@def.debian.net>
7
# craft a bug report or fail/success reply to a buildd log mail
8
# using vim, mutt and optionally quintuple-agent:
10
# 'f'orward the message
11
# (may require autoedit & edit_headers .muttrc settings)
13
# map <F3> :%!~buildd/bin/dobuildlog agpg<CR>
14
# map <S-F3> :%!~buildd/bin/dobuildlog gpg<CR>
15
# map <F4> :%!~buildd/bin/dobuildlog bug<CR>
17
# these require setting by the user
18
SIGNOPTS='--clearsign --default-key younie@debian.org'
19
FROM="$EMAIL" # "Your Name <your@addr.ess>"
20
ARCH=m68k # for the bug report log link
25
/^-----/,/^Automatic/ {
27
s/^Subject: Log/Subject: Re: Log/p
35
this one takes a comment,
36
multi-line, indenting optional
38
- usage: dep-wait some-package (>= version), another-package (>> version)
44
- purges the source tree from the chroot
53
STATUS=$(sed -n '/^-----/,/^Automatic/ s/^Subject: Log for \([^ ]*\) build .*/\1/p')
58
sed -n '/\.changes:$/,$ {
60
}' |$SIGNPRG 2>/dev/null
65
sed -n '/^Automatic build of/,$p'
68
echo "..this doesn't appear to be a buildd success/fail message"
80
To: submit@bugs.debian.org
81
Subject: $PKG_VERS: fails to build
91
sed -n '/^Automatic build of/,/^Build needed/ s/^/| /p'
95
The $ARCH build logs for $PKG can be found at
96
http://buildd.debian.org/build.php?arch=$ARCH&pkg=$PKG
104
SIGNPRG="$1 $SIGNOPTS"
109
PKG_VERS=$(sed -n '/^-----/,/^Automatic/ s/^Subject: Log for \([^ ]*\) build of \([^ ]*\) .*/\2/p')
110
bug_report $(echo "$PKG_VERS" |sed 's/_/ /')
113
echo "Usage: $(basename $0) gpg|agpg|bug"