subject="build failure after merge of the BRANCH tree"
$(dirname $0)/message_helper "$@" "$subject" <<EOF
-After merging the BRANCH tree, today's linux-next build (KCONFIG_NAME)
-failed like this:
+After merging the BRANCH tree, today's linux-next build (KCONFIG_NAME) failed like this:
EOF
exit 0
subject="build warning after merge of the BRANCH tree"
$(dirname $0)/message_helper "$@" "$subject" <<EOF
-After merging the BRANCH tree, today's linux-next build ()
-produced this warning:
+After merging the BRANCH tree, today's linux-next build (KCONFIG_NAME) produced this warning:
EOF
exit 0
from the BRANCH tree.
-I fixed it up (see below) and can carry the fix as necessary (no action
-is required).
+I fixed it up (see below) and can carry the fix as necessary (no action is required).
EOF
exit 0
shift 2
}
+kconfig=""
+[ "$1" = "-c" ] && {
+ kconfig=$2
+ shift 2
+}
+
+cc="linux-next@vger.kernel.org, linux-kernel@vger.kernel.org"
+
[ "$branch" ] || {
branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //' | sed 's/ .*$//')
branch=${branch%%/*}
[ "${contact%,*}" = "${contact}" ] || greeting="all"
subject="${1//BRANCH/$branch}"
+filter="sed -e \"s/BRANCH/$branch/g\""
+[ "$kconfig" ] &&
+ filter="$filter -e \"s/KCONFIG_NAME/$kconfig/g\""
+filter="$filter | fmt"
-$(dirname $0)/send_email "$contact" "linux-next@vger.kernel.org, linux-kernel@vger.kernel.org" "linux-next: $subject" <<EOF
+$(dirname $0)/send_email "$contact" "$cc" "linux-next: $subject" <<EOF
Hi $greeting,
-$(sed "s/BRANCH/$branch/g")
+$(eval $filter)
EOF
exit 0