]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/dist-mipsel-linux/build-mipsel-toolchain.sh
Remove obsolete comment.
[rust.git] / src / ci / docker / host-x86_64 / dist-mipsel-linux / build-mipsel-toolchain.sh
1 #!/usr/bin/env bash
2 set -ex
3
4 hide_output() {
5   set +x
6   on_err="
7 echo ERROR: An error was encountered with the build.
8 cat /tmp/build.log
9 exit 1
10 "
11   trap "$on_err" ERR
12   bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
13   PING_LOOP_PID=$!
14   "$@" &> /tmp/build.log
15   rm /tmp/build.log
16   trap - ERR
17   kill $PING_LOOP_PID
18   set -x
19 }
20
21 mkdir build
22 cd build
23 cp ../mipsel-linux-gnu.config .config
24 hide_output ct-ng build
25 cd ..
26 rm -rf build