To: [email protected]
Subject: Patch 6.1b.015
Fcc: outbox
From: Bram Moolenaar <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------

Patch 6.1b.015
Problem:    Vimtutor has a typo.  Get a warning for "tempfile" if it
           doesn't exist.
Solution:   Move a quote to the end of a line. (Max Ischenko)
           Use "mktemp" first, more systems have it.
Files:      src/vimtutor


*** ../vim61b.014/src/vimtutor  Sat Mar  9 16:36:45 2002
--- src/vimtutor        Wed Mar 13 10:04:11 2002
***************
*** 12,18 ****

 # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
 tmp="${TMPDIR-/tmp}"
! TUTORCOPY=`tempfile -p tutor || mktemp $tmp/tutorXXXXXX || echo $tmp/tutor$$`
 export TUTORCOPY

 # remove the copy of the tutor on exit
--- 12,18 ----

 # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
 tmp="${TMPDIR-/tmp}"
! TUTORCOPY=`mktemp $tmp/tutorXXXXXX || tempfile -p tutor || echo $tmp/tutor$$`
 export TUTORCOPY

 # remove the copy of the tutor on exit
***************
*** 20,26 ****

 # 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
--- 20,26 ----

 # 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
*** ../vim61b.014/src/version.c Fri Mar 15 21:55:02 2002
--- src/version.c       Fri Mar 15 21:56:26 2002
***************
*** 608,609 ****
--- 608,611 ----
 {   /* Add new patch number below this line */
+ /**/
+     15,
 /**/

--
Q:   How many hardware engineers does it take to change a lightbulb?
A:   None.  We'll fix it in software.

///  Bram Moolenaar -- [email protected] -- http://www.moolenaar.net  \\\
///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
\\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
\\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///