blob: dd77b82f2328bd9ab35b64ed6684ed583307cfea [file] [log] [blame]
Denys Vlasenko6acf5862012-03-18 23:27:23 +01001#!/bin/sh
2
3build_in_dir()
4{
5 cd "$1" || exit 1
6 rm -f hdb.img 2>/dev/null
7 ./native-build.sh ../hdc.img
8 rm -f hdb.img 2>/dev/null
9}
10
11started=false
12for dir; do
13 test -d "$dir" || continue
14 test -e "$dir/native-build.sh" || continue
15 echo "Starting: $dir"
16 build_in_dir "$dir" </dev/null >"$dir.log" 2>&1 &
17 started=true
18done
19
20$started || {
21 echo "Give me system-image-ARCH directories on command line"
22 exit 1
23}
24
25echo "Waiting to finish"
26wait
27echo "Done, check the logs"