2014-05-12 10:17:41 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-12-26 04:02:25 +03:00
|
|
|
COOKIE=".2016-12-25-gcc-6-3.cookie"
|
2015-12-16 10:42:23 +03:00
|
|
|
|
|
|
|
unset CC
|
|
|
|
|
2015-12-16 11:06:37 +03:00
|
|
|
if [ ! -e "toolchain/local/$COOKIE" ]; then
|
2015-12-16 10:20:06 +03:00
|
|
|
echo "=== Cleaning any preexisting stuff... ==="
|
2015-12-16 10:27:38 +03:00
|
|
|
rm -fr toolchain/build
|
|
|
|
rm -fr toolchain/local
|
|
|
|
rm -fr toolchain/tarballs/*
|
2015-12-16 10:20:06 +03:00
|
|
|
echo "=== Starting watchdog ==="
|
|
|
|
(
|
|
|
|
while [ 1 == 1 ]; do
|
|
|
|
echo "..."
|
|
|
|
sleep 1m
|
|
|
|
done
|
|
|
|
) &
|
|
|
|
watchdog_pid=$!
|
2015-12-16 09:53:26 +03:00
|
|
|
echo "=== Begin Toolchain Build ==="
|
|
|
|
pushd toolchain
|
|
|
|
unset PKG_CONFIG_LIBDIR
|
|
|
|
./prepare.sh
|
|
|
|
./install.sh
|
2015-12-16 10:20:06 +03:00
|
|
|
date > ./local/$COOKIE
|
2015-12-16 09:53:26 +03:00
|
|
|
popd
|
|
|
|
echo "=== End Toolchain Build ==="
|
2015-12-16 10:20:06 +03:00
|
|
|
echo "=== Stopping watchdog ==="
|
|
|
|
kill $watchdog_pid
|
2015-12-16 09:53:26 +03:00
|
|
|
else
|
|
|
|
echo "=== Toolchain was cached. ==="
|
2015-07-26 03:09:16 +03:00
|
|
|
fi
|
|
|
|
|
2014-05-12 10:17:41 +04:00
|
|
|
. toolchain/activate.sh
|
|
|
|
|
2016-12-06 09:31:30 +03:00
|
|
|
make || exit 1
|
2014-05-12 10:17:41 +04:00
|
|
|
|
2015-12-16 11:26:32 +03:00
|
|
|
echo "=== Running test suite. ==="
|
|
|
|
|
2016-12-06 09:31:30 +03:00
|
|
|
expect util/test-travis.exp || exit 1
|
|
|
|
|
|
|
|
echo "=== Building live CD ==="
|
|
|
|
|
2016-12-06 09:34:13 +03:00
|
|
|
git fetch --unshallow
|
|
|
|
|
2016-12-06 09:31:30 +03:00
|
|
|
git clone . _cdsource || exit 1
|
|
|
|
|
|
|
|
cd _cdsource
|
|
|
|
|
|
|
|
make cdrom || exit 1
|
|
|
|
|
|
|
|
echo "=== Done. ==="
|
2015-12-28 05:52:19 +03:00
|
|
|
|