Add RHEL version of Vim build script
This commit is contained in:
parent
33ce70e089
commit
3d5ac0ea52
1 changed files with 12 additions and 0 deletions
12
roles/el/files/build-vim.sh
Executable file
12
roles/el/files/build-vim.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
echo "Usage: $0 [install_dir] [vim_git_repo]"
|
||||
vim_dir=$(mktemp -d -t vim-XXXXXXXXXXXX --tmpdir=/var/tmp)
|
||||
dnf install -y @development ncurses-devel
|
||||
git clone ${2:-https://github.com/vim/vim.git} $vim_dir
|
||||
pushd $vim_dir
|
||||
./configure --prefix=${1:-/opt/vim} --disable-nls --disable-gui
|
||||
make
|
||||
make install
|
||||
popd
|
||||
rm -fr $vim_dir
|
Loading…
Reference in a new issue