From 3d5ac0ea525722bed977d923ec93cd887b9cf64b Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 29 Jul 2022 16:22:01 +0100 Subject: [PATCH] Add RHEL version of Vim build script --- roles/el/files/build-vim.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 roles/el/files/build-vim.sh diff --git a/roles/el/files/build-vim.sh b/roles/el/files/build-vim.sh new file mode 100755 index 0000000..7a657c3 --- /dev/null +++ b/roles/el/files/build-vim.sh @@ -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