aboutsummaryrefslogtreecommitdiff
path: root/compile/nvim.sh
blob: d5badf5399d1163078142962e719f61f3d334e02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
if [ "$(id -u)" -eq 0 ] ; then
	echo "Run as a regular user"
	exit 1
fi
set -ex
codedir="${CODEDIR:-$HOME/scm}"
nvimdir="${codedir}/nvim"
if ! [ -d "$nvimdir" ] ; then
	git clone https://github.com/neovim/neovim "$nvimdir"
fi
cd "$nvimdir"
# git clean -fdx .
rm -rf build || echo ""
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
make install
cd -