+2006-02-23 [wwp] 2.0.0cvs76
+
+ * commitHelper
+ fixed indentation from my previous commit. Fallback to VISUAL if
+ EDITOR is not set (and to vi, at last resort).
+
2006-02-23 [wwp] 2.0.0cvs75
* commitHelper
( ) > 2.0.0cvs73.patchset
( cvs diff -u -r 1.30.2.24 -r 1.30.2.25 src/prefs_toolbar.c; ) > 2.0.0cvs74.patchset
( cvs diff -u -r 1.1.2.29 -r 1.1.2.30 commitHelper; ) > 2.0.0cvs75.patchset
+( cvs diff -u -r 1.1.2.30 -r 1.1.2.31 commitHelper; ) > 2.0.0cvs76.patchset
files=`cvs diff -uN $@ 2>$tmpfile |grep ^Index`
if [ "$files" == "" ]; then
echo Nothing to commit\!
- if [ -s $tmpfile ]
- then
+ if [ -s $tmpfile ]; then
echo See possible reason below:
cat $tmpfile
fi
log="$log\t* $file\n"
if [ "$version" != "0" ]; then
- patchset="$patchset cvs diff -u -r $version -r $nextversion $file; "
+ patchset="$patchset cvs diff -u -r $version -r $nextversion $file; "
else
- patchset="$patchset diff -u /dev/null $file; "
+ patchset="$patchset diff -u /dev/null $file; "
fi
done;
patchset="$patchset ) > $nextsversion.patchset"
if [ "$EDITOR" == "" ]; then
- EDITOR=vi
+ if [ "$VISUAL" != "" ]; then
+ EDITOR=$VISUAL
+ else
+ EDITOR=vi
+ fi;
fi;