mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-10 01:40:26 +00:00
bootstrap.sh: refactor
This commit is contained in:
parent
5d3c1da39c
commit
8f3bb106ba
14
bootstrap.sh
14
bootstrap.sh
@ -7,14 +7,15 @@ echo "bootstrap: checking installation..."
|
|||||||
BGJOB=false
|
BGJOB=false
|
||||||
BASEDIR=`pwd`;
|
BASEDIR=`pwd`;
|
||||||
LIBDIR=${BASEDIR}/libs;
|
LIBDIR=${BASEDIR}/libs;
|
||||||
SUBDIRS="ilbc curl iksemel js js/nsprpub ldns libdingaling libedit libsndfile pcre sofia-sip \
|
SUBDIRS="apr \
|
||||||
speex sqlite srtp openzap freetdm spandsp libg722_1 portaudio unimrcp tiff-3.8.2 broadvoice silk libcodec2";
|
ilbc curl iksemel js js/nsprpub ldns libdingaling libedit libsndfile pcre sofia-sip \
|
||||||
SUBDIRS_ONLY=false
|
speex sqlite srtp openzap freetdm spandsp libg722_1 portaudio unimrcp tiff-3.8.2 broadvoice silk libcodec2 \
|
||||||
|
fs";
|
||||||
|
|
||||||
while getopts 'jhd:' o; do
|
while getopts 'jhd:' o; do
|
||||||
case "$o" in
|
case "$o" in
|
||||||
j) BGJOB=true;;
|
j) BGJOB=true;;
|
||||||
d) SUBDIRS="$OPTARG" SUBDIRS_ONLY=true;;
|
d) SUBDIRS="$OPTARG";;
|
||||||
h) echo "Usage: $0 <options>"
|
h) echo "Usage: $0 <options>"
|
||||||
echo " Options:"
|
echo " Options:"
|
||||||
echo " -d 'library1 library2'"
|
echo " -d 'library1 library2'"
|
||||||
@ -377,6 +378,9 @@ bootstrap_fs() {
|
|||||||
|
|
||||||
bootstrap_libs() {
|
bootstrap_libs() {
|
||||||
for i in ${SUBDIRS}; do
|
for i in ${SUBDIRS}; do
|
||||||
|
case "$i" in
|
||||||
|
apr|fs) bootstrap_$i && continue ;;
|
||||||
|
esac
|
||||||
if [ "${BGJOB}" = "false" ]; then
|
if [ "${BGJOB}" = "false" ]; then
|
||||||
libbootstrap ${i}
|
libbootstrap ${i}
|
||||||
else
|
else
|
||||||
@ -394,9 +398,7 @@ run() {
|
|||||||
check_lt_ver
|
check_lt_ver
|
||||||
check_libtoolize
|
check_libtoolize
|
||||||
print_autotools_vers
|
print_autotools_vers
|
||||||
test $SUBDIRS_ONLY || bootstrap_apr
|
|
||||||
bootstrap_libs
|
bootstrap_libs
|
||||||
test $SUBDIRS_ONLY || bootstrap_fs
|
|
||||||
if [ "${BGJOB}" = "true" ]; then
|
if [ "${BGJOB}" = "true" ]; then
|
||||||
wait
|
wait
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user