2024-10-04 19:58:25 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source versions.sh
|
|
|
|
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
|
2024-10-09 03:11:06 +08:00
|
|
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
2024-10-04 19:58:25 +08:00
|
|
|
|
|
|
|
[ -d dejagnu-${dejagnu_version} ] && rm -rf dejagnu-${dejagnu_version}
|
|
|
|
|
|
|
|
tar -zxf ${dejagnu_tarball}
|
|
|
|
|
|
|
|
cd dejagnu-${dejagnu_version}
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
../configure --prefix=/usr
|
|
|
|
|
|
|
|
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
|
|
|
|
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
|
|
|
|
|
2024-10-09 03:11:06 +08:00
|
|
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
|
|
|
echo "running dejagnu make check"
|
|
|
|
make check > ${GLSOURCES}/dejagnu.check.log 2>&1
|
|
|
|
fi
|
2024-10-04 19:58:25 +08:00
|
|
|
|
|
|
|
make install
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
myfail "Failed installing dejagnu"
|
|
|
|
fi
|
|
|
|
|
|
|
|
install -v -dm755 /usr/share/doc/dejagnu-${dejagnu_version}
|
|
|
|
install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-${dejagnu_version}
|
|
|
|
|
2024-10-08 12:28:55 +08:00
|
|
|
popd
|
2024-10-04 19:58:25 +08:00
|
|
|
|
2024-10-08 12:28:55 +08:00
|
|
|
# cleanup
|
|
|
|
|
|
|
|
pushd $GLSOURCES
|
|
|
|
|
|
|
|
rm -rf dejagnu-${dejagnu_version}
|
|
|
|
|
|
|
|
popd
|