]> granicus.if.org Git - strace/blob - qemu_multiarch_testing/parallel-build-hdc-img.sh
Remove HAVE_STRUCT_TCB_EXT_ARG, ext_arg, and u_lrval
[strace] / qemu_multiarch_testing / parallel-build-hdc-img.sh
1 #!/bin/sh
2
3 export HDBMEGS=64
4 keep_hdb=false
5
6 build_in_dir()
7 {
8         cd "$1" || exit 1
9         rm -f hdb.img
10         nice -n10 time ./native-build.sh ../hdc.img
11         $keep_hdb || rm -f hdb.img
12         echo >&3 "Finished: $1"
13 }
14
15 started=false
16 for dir; do
17         test -d "$dir" || continue
18         test -e "$dir/native-build.sh" || continue
19         echo "Starting: $dir"
20         build_in_dir "$dir" 3>&1 </dev/null >"$dir.log" 2>&1 &
21         started=true
22 done
23
24 $started || {
25         echo "Give me system-image-ARCH directories on command line"
26         exit 1
27 }
28
29 echo "Waiting to finish"
30 wait
31 echo "Done, check the logs"