done;
patchset="$patchset ) > $nextsversion.patchset"
-if [ "$EDITOR" == "" ]; then
- if [ "$VISUAL" != "" ]; then
- EDITOR=$VISUAL
- else
- EDITOR=vi
+if [ "$CVSEDITOR" == "" ]; then
+ if [ "$EDITOR" == "" ]; then
+ if [ "$VISUAL" != "" ]; then
+ EDITOR=$VISUAL
+ else
+ EDITOR=vi
+ fi;
fi;
+else
+ EDITOR=$CVSEDITOR
fi;
+echo -e "#please complete the changelog entry below" > /tmp/logentry.$$
+echo -e -n $log >> /tmp/logentry.$$
-echo -e "#please complete the changelog entry below" > /tmp/logentry
-echo -e -n $log >> /tmp/logentry
-
-$EDITOR /tmp/logentry
+$EDITOR /tmp/logentry.$$
echo "--8<----------"
-grep -v "^#" /tmp/logentry > /tmp/log.tmp.$$ \
-&& mv /tmp/log.tmp.$$ /tmp/logentry
-echo >> /tmp/logentry
-cat /tmp/logentry
+grep -v "^#" /tmp/logentry.$$ > /tmp/log.tmp.$$ \
+&& mv /tmp/log.tmp.$$ /tmp/logentry.$$
+echo >> /tmp/logentry.$$
+cat /tmp/logentry.$$
chlog="ChangeLog"
read ans
if [ "$ans" == "y" ]; then
mv $chlog $chlog.old
- cat /tmp/logentry > $chlog
+ cat /tmp/logentry.$$ > $chlog
cat $chlog.old >> $chlog
rm $chlog.old
if [ "$args" != "" ]; then
echo commiting $@ PATCHSETS $chlog configure.ac
- cvs commit -m "`cat /tmp/logentry`" $@ PATCHSETS $chlog configure.ac
+ cvs commit -m "`cat /tmp/logentry.$$`" $@ PATCHSETS $chlog configure.ac
else
echo commiting recursively
- cvs commit -m "`cat /tmp/logentry` "
+ cvs commit -m "`cat /tmp/logentry.$$` "
fi;
- rm -f /tmp/logentry
- wget -O /dev/null -o /dev/null http://www.colino.net/sylpheed-claws-gtk2/update.php3
+ rm -f /tmp/logentry.$$
+ wget -O /dev/null -o /dev/null http://www.colino.net/sylpheed-claws/update.php3
fi