Add option to ./bootstrap.sh to specify which directories to bootstrap
This commit is contained in:
parent
92fb339434
commit
c219a09499
24
bootstrap.sh
24
bootstrap.sh
|
@ -2,22 +2,24 @@
|
||||||
echo "bootstrap: checking installation..."
|
echo "bootstrap: checking installation..."
|
||||||
|
|
||||||
BGJOB=false
|
BGJOB=false
|
||||||
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`;
|
BASEDIR=`pwd`;
|
||||||
LIBDIR=${BASEDIR}/libs;
|
LIBDIR=${BASEDIR}/libs;
|
||||||
SUBDIRS="ilbc curl iksemel js js/nsprpub ldns libdingaling libedit libsndfile pcre sofia-sip \
|
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";
|
speex sqlite srtp openzap freetdm spandsp libg722_1 portaudio unimrcp tiff-3.8.2 broadvoice silk libcodec2";
|
||||||
|
|
||||||
|
while getopts 'jhd:' o; do
|
||||||
|
case "$o" in
|
||||||
|
j) BGJOB=true;;
|
||||||
|
d) SUBDIRS="$OPTARG";;
|
||||||
|
h) echo "Usage: $0 <options>"
|
||||||
|
echo " Options:"
|
||||||
|
echo " -d 'library1 library2'"
|
||||||
|
echo " => Override directories to bootstrap"
|
||||||
|
echo " -j => Run Jobs in Background"
|
||||||
|
exit;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
if [ ! -f modules.conf ]; then
|
if [ ! -f modules.conf ]; then
|
||||||
cp build/modules.conf.in modules.conf
|
cp build/modules.conf.in modules.conf
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue