Files
alfs/toolchain/findutils.sh
2021-01-10 06:38:21 -08:00

31 lines
475 B
Bash
Executable File

#!/bin/bash
if [ "$(whoami)" != "lfs" ]; then
echo "Script must be run as user: lfs"
exit 255
fi
cd $LFS/sources
tar xvf findutils-4.7.0.tar.xz
cd findutils-4.7.0
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
make
make DESTDIR=$LFS install
mv -v $LFS/usr/bin/find $LFS/bin
sed -i 's|find:=${BINDIR}|find:=/bin|' $LFS/usr/bin/updatedb
cd $LFS/sources
rm -rf findutils-4.7.0
echo "Done"