]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
bootstrap.sh: fix some issues with a08262384a
authorTravis Cross <tc@traviscross.com>
Thu, 5 Apr 2012 08:00:43 +0000 (08:00 +0000)
committerTravis Cross <tc@traviscross.com>
Thu, 5 Apr 2012 08:12:43 +0000 (08:12 +0000)
bootstrap.sh

index 6254f8d5f1f1bc8ddb128a34e43b3458381f4732..83e15e962d60b2dc2484eede5d3fdce63528ef08 100755 (executable)
@@ -381,7 +381,7 @@ bootstrap_fs() {
 }
 
 bootstrap_libs_pre() {
-  case "$i" in
+  case "$1" in
     ldns)
       # This file shouldn't even be in the tree as it's autogenerated
       # during bootstrap, but some people report it breaks the build
@@ -392,7 +392,7 @@ bootstrap_libs_pre() {
 }
 
 bootstrap_libs_post() {
-  case "$i" in
+  case "$1" in
     ldns) (cd $BASEDIR/libs/ldns && mv install-sh~ install-sh) ;;
   esac
 }
@@ -406,13 +406,12 @@ bootstrap_libs() {
         continue
         ;;
     esac
-    bootstrap_libs_pre
+    bootstrap_libs_pre ${i}
     if ! ${BGJOB}; then
-      libbootstrap ${i}
+      libbootstrap ${i} ; bootstrap_libs_post ${i}
     else
-      libbootstrap ${i} &
+      ((libbootstrap ${i} ; bootstrap_libs_post ${i}) &)
     fi
-    bootstrap_libs_post
   done
 }