]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSBUILD-282
authorBrian West <brian@freeswitch.org>
Mon, 14 Jun 2010 00:16:28 +0000 (19:16 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 14 Jun 2010 00:16:28 +0000 (19:16 -0500)
bootstrap.sh

index 179aae6cdcf9ba1772938ed4c72d83a0d98227e0..59a568769ec07b4398aad060abecdfcdfb2b3962 100755 (executable)
@@ -2,9 +2,16 @@
 echo "bootstrap: checking installation..."
 
 BGJOB=false
-if [ "${1}" == "-j" ]  ; then
-       BGJOB=true
-fi
+while getopts jh arg
+do 
+  case $arg in
+    j) BGJOB=true;;
+    h) echo "Usage: $0 <options>"
+       echo "  Options:"
+       echo "           -j => Run Jobs in Background"
+       exit;;
+  esac
+done
 
 BASEDIR=`pwd`;
 LIBDIR=${BASEDIR}/libs;