lfs-buildscripts/CH8Build/CH08.60-findutils.sh

44 lines
773 B
Bash
Raw Normal View History

2024-10-07 01:55:01 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 09:50:04 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-07 01:55:01 +08:00
[ -d findutils-${findutils_version} ] && rm -rf findutils-${findutils_version}
tar -Jxf ${findutils_tarball}
cd findutils-${findutils_version}
./configure --prefix=/usr \
--localstatedir=/var/lib/locate
make
if [ $? -ne 0 ]; then
myfail "Failed building findutils"
fi
2024-10-09 09:50:04 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running findutils make check"
chown -R tester .
su tester -c "PATH=$PATH make check > findutils.check.log"
mv findutils.check.log ${GLSOURCES}/
fi
2024-10-07 01:55:01 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing findutils"
fi
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf findutils-${findutils_version}
popd