]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-030 v7.1.030
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Jul 2007 12:33:46 +0000 (12:33 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Jul 2007 12:33:46 +0000 (12:33 +0000)
src/version.c
src/vimtutor

index b94783c3dbce0664fdaff5640e909ae367f0c16d..bfb8cca01b01fb8c3ee97700fbe319391ea5d829 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    30,
 /**/
     29,
 /**/
index 2fbb1371fb3c46d12445f30abd162f429842a4ee..731b1ef235a64ad531e1416c285b7690ce870fdc 100755 (executable)
@@ -39,18 +39,22 @@ export TUTORCOPY
 # remove the copy of the tutor on exit
 trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
 
-# Vim could be called "vim" or "vi".  Also check for "vim6", for people who
-# have Vim 5.x installed as "vim" and Vim 6.0 as "vim6".
-testvim=`which vim6 2>/dev/null`
-if test -f "$testvim"; then
-       VIM=vim6
-else
-       testvim=`which vim`
+# Vim could be called "vim" or "vi".  Also check for "vimN", for people who
+# have Vim installed with its version number.
+# We anticipate up to a future Vim 8 version :-).
+seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
+for i in $seq; do
+       testvim=`which $i 2>/dev/null`
        if test -f "$testvim"; then
-               VIM=vim
-       else
-               VIM=vi
+               VIM=$i
+               break
        fi
+done
+
+# When no Vim version was found fall back to "vim", you'll get an error message
+# below.
+if test -z "$VIM"; then
+       VIM=vim
 fi
 
 # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME