]> git.ozlabs.org Git - next-scripts/blobdiff - build_warn
split messag_helper out
[next-scripts] / build_warn
index c8108f2e79aa4b127aa1b3ea1d051cd81fce30fa..c4d5ed64d7570e5f0e850838aa64871c47ae6f22 100755 (executable)
@@ -1,27 +1,9 @@
 #!/bin/bash
 
-log=../merge.log
-[ -f merge.log ] && log=merge.log
-control=../real_control
-[ -f real_control ] && control=real_control
-
-branch=""
-[ "$1" = "-t" ] && {
-        branch=$2
-        shift 2
-}
-
-[ "$branch" ] || {
-       branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //' | sed 's/ .*$//')
-       branch=${branch%%/*}
-}
+subject="build warning after merge of the BRANCH tree"
+body="After merging the BRANCH tree, today's linux-next build ()%0A\
+produced this warning:"
 
-contact=$(awk -F '     ' '$3=="'"$branch"'" { print $1; }' $control)
-greeting=${contact%% *}
-greeting=${greeting#\"}
-[ "${contact%,*}" = "${contact}" ] || greeting="all"
+$(dirname $0)/message_helper "$@" "$subject" "$body"
 
-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