]> git.ozlabs.org Git - next-scripts/commitdiff
Initial scripting of mail messages
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 23 Jun 2008 07:18:17 +0000 (17:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 23 Jun 2008 07:18:17 +0000 (17:18 +1000)
build_msg [new file with mode: 0755]
merge_msg [new file with mode: 0755]

diff --git a/build_msg b/build_msg
new file mode 100755 (executable)
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 (executable)
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."