bootstrap.sh: wait more simply now that we've found the problem
This commit is contained in:
parent
89c590cda8
commit
9d34118467
16
bootstrap.sh
16
bootstrap.sh
|
@ -438,16 +438,10 @@ bootstrap_libs_post() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bootstrap_libs() {
|
bootstrap_libs() {
|
||||||
local jobs=""
|
|
||||||
for i in ${SUBDIRS}; do
|
for i in ${SUBDIRS}; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
apr|fs|libzrtp)
|
apr|fs|libzrtp)
|
||||||
if ${BGJOB}; then
|
${BGJOB} && wait
|
||||||
for x in $jobs; do
|
|
||||||
wait $jobs
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
jobs=""
|
|
||||||
bootstrap_$i
|
bootstrap_$i
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
@ -457,15 +451,9 @@ bootstrap_libs() {
|
||||||
libbootstrap ${i} ; bootstrap_libs_post ${i}
|
libbootstrap ${i} ; bootstrap_libs_post ${i}
|
||||||
else
|
else
|
||||||
(libbootstrap ${i} ; bootstrap_libs_post ${i}) &
|
(libbootstrap ${i} ; bootstrap_libs_post ${i}) &
|
||||||
local x=$!
|
|
||||||
jobs="$jobs $x"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if ${BGJOB}; then
|
${BGJOB} && wait
|
||||||
for x in $jobs; do
|
|
||||||
wait $x
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
|
|
Loading…
Reference in New Issue