From: Stephen Rothwell Date: Mon, 23 Jun 2008 07:18:17 +0000 (+1000) Subject: Initial scripting of mail messages X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=707a18bbbe78f9e6ba912f03b2d58c2a94b9f733;p=next-scripts Initial scripting of mail messages --- diff --git a/build_msg b/build_msg new file mode 100755 index 0000000..c0b0b03 --- /dev/null +++ b/build_msg @@ -0,0 +1,16 @@ +#!/bin/bash + +log=../merge.log +[ -f merge.log ] && log=merge.log +control=../real_control +[ -f real_control ] && control=real_control + +branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //') +branch=${branch#quilt/} +branch=${branch%%/*} + +contact=$(sed -n "/ $branch /s/ .*$//p" $control) + +sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org&Subject=linux-next: $branch tree build failure&Body=Hi ,%0A\ +%0A\ +Today's linux-next build () failed like this:" diff --git a/merge_msg b/merge_msg new file mode 100755 index 0000000..3433b92 --- /dev/null +++ b/merge_msg @@ -0,0 +1,16 @@ +#!/bin/bash + +log=../merge.log +[ -f merge.log ] && log=merge.log +control=../real_control +[ -f real_control ] && control=real_control + +branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //') +branch=${branch#quilt/} +branch=${branch%%/*} + +contact=$(sed -n "/ $branch /s/ .*$//p" $control) + +sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org&Subject=linux-next: manual merge of $branch tree&Body=Hi ,%0A\ +%0A\ +Today's linux-next merge of the $branch tree got a conflict in between commit ("") from the tree and commit ("") from the $branch tree."