]> git.ozlabs.org Git - next-scripts/blobdiff - build_msg
update to_build_host a bit
[next-scripts] / build_msg
index 4d6123c47f411f66b8263054acded6960fd9c32f..5ba2bbb83f9ad6b73c542e499d1c7f7b60a2d5a2 100755 (executable)
--- a/build_msg
+++ b/build_msg
@@ -1,19 +1,15 @@
 #!/bin/bash
 
-log=../merge.log
-[ -f merge.log ] && log=merge.log
-control=../real_control
-[ -f real_control ] && control=real_control
+subject="build failure after merge of the BRANCH tree"
 
-branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //')
-branch=${branch#quilt/}
-branch=${branch%%/*}
+tools_dir=$(dirname "$0")
+"$tools_dir"/message_helper "$@" "$subject" <<EOF
+After merging the BRANCH tree, today's linux-next build (KCONFIG_NAME) failed like this:
 
-contact=$(sed -n "/    $branch /s/     .*$//p" $control)
-greeting=${contact%% *}
-[ "${contact%,*}" = "${contact}" ] || greeting="all"
 
-sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org,%20linux-kernel@vger.kernel.org&Subject=linux-next: build failure after merge of $branch tree&Body=Hi $greeting,%0A\
-%0A\
-After merging the $branch tree, today's linux-next build ()%0A\
-failed like this:"
+Caused by commit
+
+   ("")
+EOF
+
+exit 0