]> git.ozlabs.org Git - next-scripts/blob - build_msg
create script for notifying new warnings
[next-scripts] / build_msg
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=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //')
9 branch=${branch#quilt/}
10 branch=${branch%%/*}
11
12 contact=$(sed -n "/     $branch /s/     .*$//p" $control)
13
14 sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org,%20linux-kernel@vger.kernel.org&Subject=linux-next: $branch tree build failure&Body=Hi ,%0A\
15 %0A\
16 Today's linux-next build () failed like this:"