workstation/roles/fedora/files/build-vim.sh

13 lines
344 B
Bash
Raw Normal View History

2022-07-29 14:44:19 +00:00
#!/bin/sh
set -e
2022-07-29 15:00:21 +00:00
echo "Usage: $0 [install_dir] [vim_git_repo]"
vim_dir=$(mktemp -d -t vim-XXXXXXXXXXXX --tmpdir=/var/tmp)
dnf install -y @development-tools ncurses-devel
git clone ${2:-https://github.com/vim/vim.git} $vim_dir
pushd $vim_dir
2022-07-29 14:44:19 +00:00
./configure --prefix=${1:-/opt/vim} --disable-nls --disable-gui
2022-07-29 15:00:21 +00:00
make
make install
popd
rm -fr $vim_dir