]> git.ozlabs.org Git - next-scripts/commitdiff
various tidy ups for the message production
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 14 Aug 2015 04:39:04 +0000 (14:39 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 14 Aug 2015 04:39:04 +0000 (14:39 +1000)
build_warn
merge_msg
message_helper
send_email

index 68834770dcebc69e18b68c116d3e47ca20c63c6e..e4c4ac582be4808f66583f52ed274d5648f67e15 100755 (executable)
@@ -4,6 +4,11 @@ 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 (KCONFIG_NAME) produced this warning:
+
+
+Introduced by commit
+
+   ("")
 EOF
 
 exit 0
index e6e87521d24615a78eb0577fef88445ff37994e9..e5d80ece7690df283794f4b049c5641ffabaa922 100755 (executable)
--- a/merge_msg
+++ b/merge_msg
@@ -6,17 +6,13 @@ branch=""
         shift 2
 }
 
-file="$*"
-
-gitk --merge -- $file &
-[ "$file" ] && gvim $file 2>/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:
 
    ("")
index fa3644c4cadc73c333d1229b00ae209cc378c8a5..a181ef6fe9f15f1818680c363874eb1763b882f1 100755 (executable)
@@ -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" <<EOF
 Hi $greeting,
index 475a9538aa754e77d24b9831510dd8393056cb58..60842a7a991cdd472b88a933b0b91be785d90893 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-TARGET="$(dirname $0)/../mails"/$(date +"%Y-%m-%d+%s").email
+TARGET="$(realpath --relative-to=. $(dirname $0)/../mails)"/$(date +"%Y-%m-%d+%s").email
 
 to="$1"
 cc="$2"