diff --git a/roles/fedora/files/build-vim.sh b/roles/fedora/files/build-vim.sh index 85a7dec..ca1cc1e 100755 --- a/roles/fedora/files/build-vim.sh +++ b/roles/fedora/files/build-vim.sh @@ -1,5 +1,12 @@ #!/bin/sh set -e -dnf groupinstall -y 'Development Tools' -dnf install -y ncurses-devel +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 ./configure --prefix=${1:-/opt/vim} --disable-nls --disable-gui +make +make install +popd +rm -fr $vim_dir