]> git.ozlabs.org Git - next-scripts/blob - build_warn
various updates
[next-scripts] / build_warn
1 #!/bin/bash
2
3 log=../merge.log
4 [ -f merge.log ] && log=merge.log
5 control=../real_control
6 [ -f real_control ] && control=real_control
7
8 branch=""
9 [ "$1" = "-t" ] && {
10         branch=$2
11         shift 2
12 }
13
14 [ "$branch" ] || {
15         branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //' | sed 's/ .*$//')
16         branch=${branch#quilt/}
17         branch=${branch%%/*}
18 }
19
20 contact=$(awk -F '      ' '$3=="'"$branch"'" { print $1; }' $control)
21 greeting=${contact%% *}
22 greeting=${greeting#\"}
23 [ "${contact%,*}" = "${contact}" ] || greeting="all"
24
25 sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org,%20linux-kernel@vger.kernel.org&Subject=linux-next: build warning after merge of the $branch tree&Body=Hi $greeting,%0A\
26 %0A\
27 After merging the $branch tree, today's linux-next build ()%0A\
28 produced this warning:"