Skip to content

Commit

Permalink
scripts: add MAKE_FLAG in install/build_vim_from_source.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Apr 22, 2024
1 parent 5fd6dde commit c6e4c78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install/build_vim_from_source.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

MAKE_FLAG=${MAKE_FLAG:-"-j4"}

_uninstall_current_version() {
if [[ -z $prev_vim_version ]]; then
echo "No previous Vim version found."
Expand Down Expand Up @@ -53,7 +55,7 @@ _install_vim() {
tar -xf $vimtar_file
pushd vim-${vim_version}
./configure --with-features=huge --enable-fontset=yes --enable-cscope=yes --enable-multibyte --enable-python3interp=yes --with-python3-config-dir --enable-gui --with-x
make -j4
make ${MAKE_FLAG}
sudo make install
popd

Expand Down

0 comments on commit c6e4c78

Please sign in to comment.