From: Stephen Rothwell Date: Fri, 14 Aug 2015 04:39:04 +0000 (+1000) Subject: various tidy ups for the message production X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=7fc728705df723b3dfc59f66dd9d81d6bae97aa2;p=next-scripts various tidy ups for the message production --- diff --git a/build_warn b/build_warn index 6883477..e4c4ac5 100755 --- a/build_warn +++ b/build_warn @@ -4,6 +4,11 @@ subject="build warning after merge of the BRANCH tree" $(dirname $0)/message_helper "$@" "$subject" </dev/null +gitk --merge -- "$@" & +[ "$#" ] && gvim "$@" 2>/dev/null +printf -v files " %s\n" "$@" conf="a conflict" -[ "$#" -gt 1 ] && { - file=${file// /, } - file=$(echo $file | sed 's/,\([^,]*\)$/ and\1/') +[ "$#" -gt 1 ] && conf="conflicts" -} subject="manual merge of the BRANCH tree with the FIXME tree" @@ -26,8 +22,7 @@ FIXME: Add owner of second tree to To: Today's linux-next merge of the BRANCH tree got $conf in: - $file - +$files between commit: ("") diff --git a/message_helper b/message_helper index fa3644c..a181ef6 100755 --- a/message_helper +++ b/message_helper @@ -35,7 +35,7 @@ subject="${1//BRANCH/$branch}" filter="sed -e \"s/BRANCH/$branch/g\"" [ "$kconfig" ] && filter="$filter -e \"s/KCONFIG_NAME/$kconfig/g\"" -filter="$filter | fmt" +filter="$filter | fmt -s" $(dirname $0)/send_email "$contact" "$cc" "linux-next: $subject" <