Add 8.40 - Build less

This commit is contained in:
Aditya 2023-01-12 11:37:15 +05:30
parent e8eee69cb0
commit b1f251d70b
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#!/bin/bash
cd /sources
tar xf less-590.tar.gz
cd less-590
./configure --prefix=/usr --sysconfdir=/etc
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make install
cd /sources
rm -rf less-590

View file

@ -1019,3 +1019,15 @@ then
stop_script "chapter8/8.39-inetutils.sh" stop_script "chapter8/8.39-inetutils.sh"
fi fi
# Chapter 8.40
# ============
echo "Building less"
su -c "bash $SCRIPT/chapter8/8.40-less.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.40-less.sh"
fi