aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-11-19 14:47:54 +0100
committerGaëtan Gilbert2019-11-19 14:47:54 +0100
commit69978e0a33d555392fd8a3d7802d28188dd6238b (patch)
tree8dbd1c1a0661aff630d522a36119e8b84b7fd711 /dev
parent4aa756934eb37c6b6d70eddf2b46871bb8ff0956 (diff)
parent87787ce81b52675f19b96f780de232be00ce6f77 (diff)
Merge PR #11106: Printing name of change log file in changelog script
Reviewed-by: SkySkimmer
Diffstat (limited to 'dev')
-rwxr-xr-xdev/tools/make-changelog.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/dev/tools/make-changelog.sh b/dev/tools/make-changelog.sh
index ec59a6047f..dbb60359cb 100755
--- a/dev/tools/make-changelog.sh
+++ b/dev/tools/make-changelog.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-echo "PR number"
+printf "PR number? "
read -r PR
-echo "Where? (type a prefix)"
+printf "Where? (type a prefix)\n"
(cd doc/changelog && ls -d */)
read -r where
@@ -17,10 +17,14 @@ where="$where/$PR-$(git rev-parse --abbrev-ref HEAD).rst"
# if necessary but doesn't hurt)
printf '%s bla bla (`#%s <https://github.com/coq/coq/pull/%s>`_, by %s).' - "$PR" "$PR" "$(git config user.name)" > "$where"
+printf "Name of created changelog file:\n"
+printf "$where\n"
+
giteditor=$(git config core.editor)
if [ "$giteditor" ]; then
$giteditor "$where"
elif [ "$EDITOR" ]; then
$EDITOR "$where"
-else echo "$where"
+else
+ printf "Describe the changes in the above file\n"
fi