rename-tests: inform the user about the pre-filled commit msg
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 19 Jun 2013 09:37:35 +0000 (11:37 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 19 Jun 2013 10:10:40 +0000 (12:10 +0200)
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
maintainer/rename-tests

index aa14de5..bdbd791 100755 (executable)
@@ -19,6 +19,7 @@
 set -e -u
 
 me=${0##*/}
+msg_file=$me.git-msg
 fatal () { echo "$me: $*" >&2; exit 1; }
 
 case $# in
@@ -47,7 +48,7 @@ input=$(
   " <<<"$input")
 
 # Prepare git commit message.
-exec 5>$me.git-msg
+exec 5>"$msg_file"
 echo "tests: more significant names for some tests" >&5
 echo >&5
 $AWK >&5 <<<"$input" \
@@ -66,3 +67,7 @@ if test -f t/list-of-tests.mk; then
 fi
 
 git status
+echo
+echo "NOTICE: pre-filled commit message is in file '$msg_file'"
+
+exit 0