mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-09 23:19:44 +00:00
Add 6.8 - Build findutils
This commit is contained in:
parent
e9e05b2324
commit
d17076689b
2 changed files with 40 additions and 0 deletions
28
scripts/chapter6/6.8-findutils.sh
Normal file
28
scripts/chapter6/6.8-findutils.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf findutils-4.9.0.tar.xz
|
||||
cd findutils-4.9.0
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--localstatedir=/var/lib/locate \
|
||||
--host=$LFS_TGT \
|
||||
--build=$(build-aux/config.guess)
|
||||
|
||||
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 findutils-4.9.0
|
||||
|
|
@ -263,3 +263,15 @@ then
|
|||
stop_script "chapter6/6.7-file.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.8
|
||||
# ===========
|
||||
echo "Building findutils"
|
||||
su - lfs -c "bash $PWD/chapter6/6.8-findutils.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.8-findutils.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue