-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim.sh
More file actions
executable file
·38 lines (33 loc) · 897 Bytes
/
vim.sh
File metadata and controls
executable file
·38 lines (33 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
if [ ! -d "vim" ]; then
echo "git clone https://github.com/vim/vim.git"
git clone https://github.com/vim/vim.git
else
cd vim
echo "git pull"
x=`git pull | wc -l`
if [ $x -eq 1 ]; then
echo "Alread up-to-date."
exit 0
fi
cd ..
fi
if [ ! -d "/usr/include/lua5.2" ]; then
echo "sudo apt install liblua5.2-dev"
sudo apt install liblua5.2-dev
fi
if [ ! -f "/usr/include/curses.h" ]; then
echo "sudo apt install libncurses5-dev"
sudo apt install libncurses5-dev
fi
pycnf=`find /usr/lib/python3.5/ -type d -name "config*"`
if [ ! -d "$pycnf" ]; then
echo "sudo apt install python3-dev"
sudo apt install python3-dev
fi
cd vim
./configure --prefix=$HOME/.local --enable-luainterp --with-lua-prefix=/usr --enable-python3interp=yes --with-python3-config-dir=$pycnf
if [ -f Makefile ]; then
make
make install
fi