From 930f4cb268cdf385f0401eba36ed13169bdabf2b Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Mon, 9 Aug 2004 15:42:33 +0000 Subject: [PATCH] let the user edit the whole changelog entry --- commitHelper | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/commitHelper b/commitHelper index 14f7518e3..f6370c26b 100644 --- a/commitHelper +++ b/commitHelper @@ -73,14 +73,14 @@ if [ "$EDITOR" == "" ]; then EDITOR=vi fi; -if [ -n "/tmp/logentry" ]; then - echo -e "\n#please type in the changelog entry" > /tmp/logentry -fi; + +echo -e "#please complete the changelog entry below" > /tmp/logentry +echo -e -n $log >> /tmp/logentry + $EDITOR /tmp/logentry echo "--8<----------" -echo -e -n $log -grep -v "^#" /tmp/logentry |grep -v "^$" | sed "s/^/ /" > /tmp/log.tmp.$$ \ +grep -v "^#" /tmp/logentry > /tmp/log.tmp.$$ \ && mv /tmp/log.tmp.$$ /tmp/logentry echo >> /tmp/logentry cat /tmp/logentry @@ -97,8 +97,7 @@ echo -n "Is it ok (write to $chlog and update configure.ac) [y/N]?" read ans if [ "$ans" == "y" ]; then mv $chlog $chlog.old - echo -e -n $log > $chlog - cat /tmp/logentry >> $chlog + cat /tmp/logentry > $chlog cat $chlog.old >> $chlog rm $chlog.old -- 2.25.1