|
Karsten Hopp |
01cebb |
To: vim-dev@vim.org
|
|
Karsten Hopp |
01cebb |
Subject: patch 7.1.030
|
|
Karsten Hopp |
01cebb |
Fcc: outbox
|
|
Karsten Hopp |
01cebb |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
01cebb |
Mime-Version: 1.0
|
|
Karsten Hopp |
01cebb |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
01cebb |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
01cebb |
------------
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
Patch 7.1.030
|
|
Karsten Hopp |
01cebb |
Problem: The "vimtutor" shell script checks for "vim6" but not for "vim7".
|
|
Karsten Hopp |
01cebb |
(Christian Robinson)
|
|
Karsten Hopp |
01cebb |
Solution: Check for more versions, but prefer using "vim".
|
|
Karsten Hopp |
01cebb |
Files: src/vimtutor
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
*** ../vim-7.1.029/src/vimtutor Sun Jun 13 20:37:33 2004
|
|
Karsten Hopp |
01cebb |
--- src/vimtutor Sun Jul 8 17:16:29 2007
|
|
Karsten Hopp |
01cebb |
***************
|
|
Karsten Hopp |
01cebb |
*** 39,56 ****
|
|
Karsten Hopp |
01cebb |
# remove the copy of the tutor on exit
|
|
Karsten Hopp |
01cebb |
trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
! # Vim could be called "vim" or "vi". Also check for "vim6", for people who
|
|
Karsten Hopp |
01cebb |
! # have Vim 5.x installed as "vim" and Vim 6.0 as "vim6".
|
|
Karsten Hopp |
01cebb |
! testvim=`which vim6 2>/dev/null`
|
|
Karsten Hopp |
01cebb |
! if test -f "$testvim"; then
|
|
Karsten Hopp |
01cebb |
! VIM=vim6
|
|
Karsten Hopp |
01cebb |
! else
|
|
Karsten Hopp |
01cebb |
! testvim=`which vim`
|
|
Karsten Hopp |
01cebb |
if test -f "$testvim"; then
|
|
Karsten Hopp |
01cebb |
! VIM=vim
|
|
Karsten Hopp |
01cebb |
! else
|
|
Karsten Hopp |
01cebb |
! VIM=vi
|
|
Karsten Hopp |
01cebb |
fi
|
|
Karsten Hopp |
01cebb |
fi
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
|
|
Karsten Hopp |
01cebb |
--- 39,60 ----
|
|
Karsten Hopp |
01cebb |
# remove the copy of the tutor on exit
|
|
Karsten Hopp |
01cebb |
trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
! # Vim could be called "vim" or "vi". Also check for "vimN", for people who
|
|
Karsten Hopp |
01cebb |
! # have Vim installed with its version number.
|
|
Karsten Hopp |
01cebb |
! # We anticipate up to a future Vim 8 version :-).
|
|
Karsten Hopp |
01cebb |
! seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
|
|
Karsten Hopp |
01cebb |
! for i in $seq; do
|
|
Karsten Hopp |
01cebb |
! testvim=`which $i 2>/dev/null`
|
|
Karsten Hopp |
01cebb |
if test -f "$testvim"; then
|
|
Karsten Hopp |
01cebb |
! VIM=$i
|
|
Karsten Hopp |
01cebb |
! break
|
|
Karsten Hopp |
01cebb |
fi
|
|
Karsten Hopp |
01cebb |
+ done
|
|
Karsten Hopp |
01cebb |
+
|
|
Karsten Hopp |
01cebb |
+ # When no Vim version was found fall back to "vim", you'll get an error message
|
|
Karsten Hopp |
01cebb |
+ # below.
|
|
Karsten Hopp |
01cebb |
+ if test -z "$VIM"; then
|
|
Karsten Hopp |
01cebb |
+ VIM=vim
|
|
Karsten Hopp |
01cebb |
fi
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
|
|
Karsten Hopp |
01cebb |
*** ../vim-7.1.029/src/version.c Mon Jul 16 20:38:56 2007
|
|
Karsten Hopp |
01cebb |
--- src/version.c Tue Jul 17 14:30:51 2007
|
|
Karsten Hopp |
01cebb |
***************
|
|
Karsten Hopp |
01cebb |
*** 668,669 ****
|
|
Karsten Hopp |
01cebb |
--- 668,671 ----
|
|
Karsten Hopp |
01cebb |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
01cebb |
+ /**/
|
|
Karsten Hopp |
01cebb |
+ 30,
|
|
Karsten Hopp |
01cebb |
/**/
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
--
|
|
Karsten Hopp |
01cebb |
BLACK KNIGHT: I'm invincible!
|
|
Karsten Hopp |
01cebb |
ARTHUR: You're a looney.
|
|
Karsten Hopp |
01cebb |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
01cebb |
|
|
Karsten Hopp |
01cebb |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
01cebb |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
01cebb |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
01cebb |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|