]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
bootstrap.sh: wait more simply now that we've found the problem
authorTravis Cross <tc@traviscross.com>
Tue, 8 May 2012 20:14:19 +0000 (20:14 +0000)
committerTravis Cross <tc@traviscross.com>
Tue, 8 May 2012 20:14:19 +0000 (20:14 +0000)
bootstrap.sh

index 5aaed673c54543f01d03d5e8de975464ffd25ca0..5c9ab26f0347a1b58ffa9a3844a9c30e4dc21146 100755 (executable)
@@ -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() {