mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 14:32:20 +08:00
44 lines
773 B
Bash
44 lines
773 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
[ -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
|
|
|
|
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
|
|
|
|
make install
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed installing findutils"
|
|
fi
|
|
|
|
popd
|
|
|
|
# cleanup
|
|
|
|
pushd $GLSOURCES
|
|
|
|
rm -rf findutils-${findutils_version}
|
|
|
|
popd
|