bootstrap.sh: wait more simply now that we've found the problem

This commit is contained in:
Travis Cross 2012-05-08 20:14:19 +00:00
parent 89c590cda8
commit 9d34118467
1 changed files with 2 additions and 14 deletions

View File

@ -438,16 +438,10 @@ bootstrap_libs_post() {
}
bootstrap_libs() {
local jobs=""
for i in ${SUBDIRS}; do
case "$i" in
apr|fs|libzrtp)
if ${BGJOB}; then
for x in $jobs; do
wait $jobs
done
fi
jobs=""
${BGJOB} && wait
bootstrap_$i
continue
;;
@ -457,15 +451,9 @@ bootstrap_libs() {
libbootstrap ${i} ; bootstrap_libs_post ${i}
else
(libbootstrap ${i} ; bootstrap_libs_post ${i}) &
local x=$!
jobs="$jobs $x"
fi
done
if ${BGJOB}; then
for x in $jobs; do
wait $x
done
fi
${BGJOB} && wait
}
run() {