mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.40 - Build less
This commit is contained in:
parent
e8eee69cb0
commit
b1f251d70b
2 changed files with 36 additions and 0 deletions
24
scripts/chapter8/8.40-less.sh
Normal file
24
scripts/chapter8/8.40-less.sh
Normal 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
|
|
@ -1019,3 +1019,15 @@ then
|
|||
stop_script "chapter8/8.39-inetutils.sh"
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue