diff options
author | Rene Ladan <rene@FreeBSD.org> | 2018-09-16 09:20:37 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2018-09-16 09:20:37 +0000 |
commit | 88f198beedaf47a7cb59b8d50f41883ebefc86ec (patch) | |
tree | 7ac8df99c036bd19034a160167d8255122743ad8 /Tools | |
parent | 74beb9901ff7a93ff1b8dc2e585c38286a5786c6 (diff) | |
download | freebsd-ports-88f198beedaf47a7cb59b8d50f41883ebefc86ec.zip |
rmport: usability fixes:
- only write the message to edit the log once
- show the log itself instead of the temporary filename
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/rmport | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index 2422a92c44d8..734247676e38 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -135,7 +135,7 @@ mkcodir() { log "creating temporary directory" d=`mktemp -d -t rmport` - touch ${d}/svnlog + echo "This is the commit message, please edit it." >> ${d}/svnlog log "created ${d}" echo "${d}" } @@ -371,8 +371,6 @@ append_Template() msg="${msg}: ${DEPRECATED}" fi - echo "This is the commit message, please edit it." >> ./svnlog - log "${catport}: adding entry to commit message template" echo "${msg}" >> ./svnlog @@ -405,7 +403,7 @@ commit() $EDITOR svnlog log "Your commit message is:" - echo svnlog + cat svnlog answer=`ask "Do you want to edit again your commit message?"` if [ "${answer}" = "y" ] ; then |