]> git.ozlabs.org Git - next-scripts/blobdiff - build_warn
make_tree_file: Abort if the ssh-add fails
[next-scripts] / build_warn
index e6cc2c594e0ade07d1a0aaf92d0f2c808304d504..17ab2aa45169590495ed60a36bddb044fa57aa8c 100755 (executable)
@@ -1,28 +1,10 @@
 #!/bin/bash
 
-log=../merge.log
-[ -f merge.log ] && log=merge.log
-control=../real_control
-[ -f real_control ] && control=real_control
+subject="build warning after merge of the BRANCH tree"
 
-branch=""
-[ "$1" = "-t" ] && {
-        branch=$2
-        shift 2
-}
+$(dirname $0)/message_helper "$@" "$subject" <<EOF
+After merging the BRANCH tree, today's linux-next build ()
+produced this warning:
+EOF
 
-[ "$branch" ] || {
-       branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //' | sed 's/ .*$//')
-       branch=${branch#quilt/}
-       branch=${branch%%/*}
-}
-
-contact=$(awk -F '     ' '$3=="'"$branch"'" { print $1; }' $control)
-greeting=${contact%% *}
-greeting=${greeting#\"}
-[ "${contact%,*}" = "${contact}" ] || greeting="all"
-
-sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org,%20linux-kernel@vger.kernel.org&Subject=linux-next: build warning after merge of the $branch tree&Body=Hi $greeting,%0A\
-%0A\
-After merging the $branch tree, today's linux-next build ()%0A\
-produced this warning:"
+exit 0