Skip to content

Instantly share code, notes, and snippets.

@xatier
Created September 11, 2020 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xatier/7afdb544ea5443768390e9814da955da to your computer and use it in GitHub Desktop.
Save xatier/7afdb544ea5443768390e9814da955da to your computer and use it in GitHub Desktop.
Script to automatically build vim git trunk (on RHEL)
#!/usr/bin/env bash
# xatier's script to build vim trunk
#
# put the following into your ~/.bashrc to use this build
# export PATH="/home/$USER/work/vim/build/bin:$PATH"
set -euo pipefail
main() {
pushd "$HOME"/work/vim
git pull
rm -rf build && mkdir build
make distclean
./configure \
--build=x86_64-redhat-linux \
--host=x86_64-redhat-linux \
--disable-canberra \
--disable-gui \
--enable-acl \
--enable-autoservername \
--enable-cscope \
--enable-fontset \
--enable-gpm \
--enable-luainterp=dynamic \
--enable-multibyte \
--enable-netbeans \
--enable-perlinterp=dynamic \
--enable-python3interp=dynamic \
--enable-pythoninterp=dynamic \
--enable-rubyinterp=dynamic \
--enable-tclinterp=dynamic \
--enable-terminal \
--prefix="$PWD/build" \
--with-compiledby="xatier" \
--with-features=huge \
--with-x=no
make -j "$(nproc)"
make install
popd # ~/work/vim
}
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment