From 707a18bbbe78f9e6ba912f03b2d58c2a94b9f733 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 23 Jun 2008 17:18:17 +1000 Subject: [PATCH] Initial scripting of mail messages --- build_msg | 16 ++++++++++++++++ merge_msg | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 build_msg create mode 100755 merge_msg 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." -- 2.39.5