lfs-buildscripts/CH8Build/CH08.09-file.sh

41 lines
606 B
Bash
Raw Normal View History

2024-10-04 15:20:13 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 02:37:48 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-04 15:20:13 +08:00
[ -d file-${file_version} ] && rm -rf file-${file_version}
tar -zxf ${file_tarball}
cd file-${file_version}
./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building file"
fi
2024-10-09 02:37:48 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running file make check"
make check > ${GLSOURCES}/file.check.log 2>&1
fi
2024-10-04 15:20:13 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing file"
fi
2024-10-08 12:28:55 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf file-${file_version}
popd