]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
improve the -d option to ./bootstrap.sh
authorTravis Cross <tc@traviscross.com>
Wed, 4 Apr 2012 22:39:43 +0000 (22:39 +0000)
committerTravis Cross <tc@traviscross.com>
Wed, 4 Apr 2012 22:40:48 +0000 (22:40 +0000)
bootstrap.sh

index ae66c38ceb4e1f3ed3d4c280b37105aa0a36c5ba..bd8c7679b258d5645b23ab7e4b65e5803fbacaab 100755 (executable)
@@ -9,15 +9,16 @@ BASEDIR=`pwd`;
 LIBDIR=${BASEDIR}/libs;
 SUBDIRS="ilbc curl iksemel js js/nsprpub ldns libdingaling libedit libsndfile pcre sofia-sip \
         speex sqlite srtp openzap freetdm spandsp libg722_1 portaudio unimrcp tiff-3.8.2 broadvoice silk libcodec2";
+SUBDIRS_ONLY=false
 
 while getopts 'jhd:' o; do 
   case "$o" in
     j) BGJOB=true;;
-    d) SUBDIRS="$OPTARG";;
+    d) SUBDIRS="$OPTARG" SUBDIRS_ONLY=true;;
     h) echo "Usage: $0 <options>"
       echo "  Options:"
       echo "           -d 'library1 library2'"
-      echo "             => Override directories to bootstrap"
+      echo "             => Bootstrap only specified subdirectories"
       echo "           -j => Run Jobs in Background"
       exit;;
   esac
@@ -393,9 +394,9 @@ run() {
   check_lt_ver
   check_libtoolize
   print_autotools_vers
-  bootstrap_apr
+  test $SUBDIRS_ONLY || bootstrap_apr
   bootstrap_libs
-  bootstrap_fs
+  test $SUBDIRS_ONLY || bootstrap_fs
   if [ "${BGJOB}" = "true" ]; then
     wait
   fi