mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 11:52:52 +00:00
Add 6.6 - Build diffutils
This commit is contained in:
parent
b57e8b5e9d
commit
33df75051a
2 changed files with 36 additions and 0 deletions
25
scripts/chapter6/6.6-diffutils.sh
Normal file
25
scripts/chapter6/6.6-diffutils.sh
Normal 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
|
||||
|
|
@ -238,4 +238,15 @@ if [ $exit_status -ne 0 ]
|
|||
then
|
||||
stop_script "chapter6/6.5-ncurses.sh"
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue