mirror of
https://github.com/mattwind/alfs.git
synced 2025-07-24 09:59:06 +00:00
31 lines
475 B
Bash
Executable File
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"
|
|
|