Add 6.6 - Build diffutils

This commit is contained in:
Aditya 2023-01-09 11:18:23 +05:30
parent b57e8b5e9d
commit 33df75051a
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#!/bin/bash
cd $LFS/sources
tar xf diffutils-3.8.tar.xz
cd diffutils-3.8
./configure --prefix=/usr --host=$LFS_TGT
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTDIR=$LFS install
cd $LFS/sources
rm -rf diffutils-3.8

View file

@ -238,4 +238,15 @@ if [ $exit_status -ne 0 ]
then then
stop_script "chapter6/6.5-ncurses.sh" stop_script "chapter6/6.5-ncurses.sh"
fi fi
# Chapter 6.6
# ===========
echo "Building diffutils"
su - lfs -c "bash $PWD/chapter6/6.6-diffutils.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6.6-diffutils.sh"
fi