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 check-${check_version} ] && rm -rf check-${check_version}
|
|
|
|
|
|
|
|
tar -zxf ${check_tarball}
|
|
|
|
|
|
|
|
cd check-${check_version}
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
make
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
myfail "Failed building check"
|
|
|
|
fi
|
|
|
|
|
2024-10-09 09:50:04 +08:00
|
|
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
|
|
|
echo "running check make check"
|
|
|
|
make check > ${GLSOURCES}/check.check.log 2>&1
|
|
|
|
fi
|
2024-10-07 01:55:01 +08:00
|
|
|
|
|
|
|
make docdir=/usr/share/doc/check-${check_version} install
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
myfail "Failed installing check"
|
|
|
|
fi
|
|
|
|
|
2024-10-08 14:25:15 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
|
|
|
|
pushd $GLSOURCES
|
|
|
|
|
|
|
|
rm -rf check-${check_version}
|
|
|
|
|
|
|
|
popd
|