Add 8.69 - Build vim

This commit is contained in:
Aditya 2023-01-12 19:39:51 +05:30
parent dfcf863edd
commit 3f960b4db2
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,37 @@
#!/bin/bash
cd /sources
tar xf vim-9.0.0228.tar.gz
cd vim-9.0.0228
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
./configure --prefix=/usr
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
chown -Rv tester .
su tester -c "LANG=en_US.UTF-8 make -j1 test" &> vim-test.log
make install
ln -sv vim /usr/bin/vi
for L in /usr/share/man/{,*/}man1/vim.1; do
ln -sv vim.1 $(dirname $L)/vi.1
done
ln -sv ../vim/vim90/doc /usr/share/doc/vim-9.0.0228
cd /sources
rm -rf vim-9.0.0228

View file

@ -1366,3 +1366,15 @@ then
stop_script "chapter8/8.68-texinfo.sh" stop_script "chapter8/8.68-texinfo.sh"
fi fi
# Chapter 8.69
# ============
echo "Building vim"
su -c "bash $SCRIPT/chapter8/8.69-vim.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
exit 1
fi