summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-29 21:55:35 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-29 21:55:35 +0200
commit89a9c159f23fb7b3e24e6d09068adfc24a73afcb (patch)
treeffc62c1104f8222091cf262a37dbb52bf01f5a61 /src
parent6e82351130ddb8d13cf3748b47f07cae77886fc7 (diff)
downloadvim-git-89a9c159f23fb7b3e24e6d09068adfc24a73afcb.tar.gz
Update runtime files
Diffstat (limited to 'src')
-rw-r--r--src/INSTALL1
-rw-r--r--src/gvimtutor2
-rwxr-xr-xsrc/vimtutor26
3 files changed, 15 insertions, 14 deletions
diff --git a/src/INSTALL b/src/INSTALL
index df7aa88a9..05153410c 100644
--- a/src/INSTALL
+++ b/src/INSTALL
@@ -44,6 +44,7 @@ To build Vim on Ubuntu from scratch on a clean system using git:
% sudo apt install git
% sudo apt install make
% sudo apt install clang
+ % sudo apt install libtool-bin
Build Vim with default features:
% git clone https://github.com/vim/vim.git
diff --git a/src/gvimtutor b/src/gvimtutor
index c452043c0..36ca7bc5e 100644
--- a/src/gvimtutor
+++ b/src/gvimtutor
@@ -5,4 +5,4 @@
# Usage: gvimtutor [xx]
# See vimtutor for usage.
-exec `dirname $0`/vimtutor -g "$@"
+exec $(dirname $0)/vimtutor -g "$@"
diff --git a/src/vimtutor b/src/vimtutor
index 1e8769b25..3b154f288 100755
--- a/src/vimtutor
+++ b/src/vimtutor
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
# Start Vim on a copy of the tutor file.
@@ -13,11 +13,11 @@
# have Vim installed with its version number.
# We anticipate up to a future Vim 8.1 version :-).
seq="vim vim81 vim80 vim8 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
-if test "$1" = "-g"; then
- # Try to use the GUI version of Vim if possible, it will fall back
- # on Vim if Gvim is not installed.
- seq="gvim gvim81 gvim80 gvim8 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
- shift
+if test "$1" = "-g"; then
+ # Try to use the GUI version of Vim if possible, it will fall back
+ # on Vim if Gvim is not installed.
+ seq="gvim gvim81 gvim80 gvim8 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
+ shift
fi
xx=$1
@@ -53,17 +53,17 @@ export TUTORCOPY
trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
for i in $seq; do
- testvim=`which $i 2>/dev/null`
- if test -f "$testvim"; then
- VIM=$i
- break
- fi
+ testvim=$(which $i 2>/dev/null)
+ if test -f "$testvim"; then
+ 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
+ VIM=vim
fi
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
@@ -71,4 +71,4 @@ fi
$VIM -f -u NONE -c 'so $VIMRUNTIME/tutor/tutor.vim'
# Start vim without any .vimrc, set 'nocompatible' and 'showcmd'
-$VIM -f -u NONE -c "set nocp showcmd" $TUTORCOPY
+$VIM -f -u NONE -c "set nocp showcmd" "$TUTORCOPY"