mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.58 - Build findutils
This commit is contained in:
parent
b0372a92bf
commit
2e64b29411
2 changed files with 42 additions and 0 deletions
30
scripts/chapter8/8.58-findutils.sh
Normal file
30
scripts/chapter8/8.58-findutils.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf findutils-4.9.0.tar.xz
|
||||
cd findutils-4.9.0
|
||||
|
||||
case $(uname -m) in
|
||||
i?86) TIME_T_32_BIT_OK=yes ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
|
||||
x86_64) ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
|
||||
esac
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
chown -Rv tester .
|
||||
su tester -c "PATH=$PATH make check"
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf findutils-4.9.0
|
|
@ -1234,3 +1234,15 @@ then
|
|||
stop_script "chapter8/8.57-gawk.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.58
|
||||
# ============
|
||||
echo "Building findutils"
|
||||
su -c "bash $SCRIPT/chapter8/8.58-findutils.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.58-findutils.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue