Created
September 11, 2020 04:57
-
-
Save xatier/7afdb544ea5443768390e9814da955da to your computer and use it in GitHub Desktop.
Script to automatically build vim git trunk (on RHEL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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