Last change
on this file since 3857 was 3621, checked in by Bruno Cornec, 8 years ago |
New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
722 bytes
|
Rev | Line | |
---|
[3621] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | export HDBMEGS=100
|
---|
| 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 | test "$1" = "-s" && {
|
---|
| 16 | dir="$2"
|
---|
| 17 | # single mode: build one directory, show output
|
---|
| 18 | test -d "$dir" || exit 1
|
---|
| 19 | test -e "$dir/native-build.sh" || exit 1
|
---|
| 20 | build_in_dir "$dir"
|
---|
| 21 | exit $?
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | started=false
|
---|
| 25 | for dir; do
|
---|
| 26 | test -d "$dir" || continue
|
---|
| 27 | test -e "$dir/native-build.sh" || continue
|
---|
| 28 | echo "Starting: $dir"
|
---|
| 29 | build_in_dir "$dir" 3>&1 </dev/null >"$dir.log" 2>&1 &
|
---|
| 30 | started=true
|
---|
| 31 | done
|
---|
| 32 |
|
---|
| 33 | $started || {
|
---|
| 34 | echo "Give me system-image-ARCH directories on command line"
|
---|
| 35 | exit 1
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | echo "Waiting to finish"
|
---|
| 39 | wait
|
---|
| 40 | echo "Done, check the logs"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.