Skip to content

Commit

Permalink
Build Vim from a clean directory every time
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioc committed Jan 21, 2024
1 parent 15d7969 commit ebd7dca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,9 @@ install_ncurses () {
}

install_vim () {
# TODO: we should do this without messing up with the original code.
cd $SOURCE/vim$VIM_BASE_VERSION &&
rm -rf $VIM_SRC.obj &&
cp -R $SOURCE/vim$VIM_BASE_VERSION $VIM_SRC.obj &&
pushd $VIM_SRC.obj &&
cat > src/auto/config.cache << "EOF"
vim_cv_getcwd_broken=no
vim_cv_memmove_handles_overlap=yes
Expand All @@ -476,7 +477,6 @@ install_vim () {
vim_cv_tty_group=world
vim_cv_tgetent=zero
EOF
echo "#define SYS_VIMRC_FILE \"${SYS_ROOT}/etc/vimrc\"" >> src/feature.h
./configure --build=${HOST} \
--host=${TARGET} \
--prefix=${SYS_ROOT} \
Expand All @@ -491,7 +491,7 @@ EOF
make -j$PROCS uninstall &&
make -j$PROCS install &&
ln -sfv vim $SYS_ROOT/bin/vi &&
cd - &&
popd &&
cat > $SYS_ROOT/etc/vimrc << "EOF"
set nocompatible
set backspace=2
Expand Down

0 comments on commit ebd7dca

Please sign in to comment.