bootstrap.sh: refactor
This commit is contained in:
parent
dfc68a72d5
commit
3282a35d99
11
bootstrap.sh
11
bootstrap.sh
|
@ -300,7 +300,7 @@ bootstrap_apr() {
|
||||||
|
|
||||||
echo "Entering directory ${LIBDIR}/apr-util"
|
echo "Entering directory ${LIBDIR}/apr-util"
|
||||||
cd ${LIBDIR}/apr-util
|
cd ${LIBDIR}/apr-util
|
||||||
if [ "${BGJOB}" = "false" ]; then
|
if ! ${BGJOB}; then
|
||||||
./buildconf
|
./buildconf
|
||||||
else
|
else
|
||||||
./buildconf &
|
./buildconf &
|
||||||
|
@ -384,11 +384,12 @@ bootstrap_libs() {
|
||||||
for i in ${SUBDIRS}; do
|
for i in ${SUBDIRS}; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
apr|fs|libzrtp)
|
apr|fs|libzrtp)
|
||||||
[ "${BGJOB}" = "true" ] && wait
|
${BGJOB} && wait
|
||||||
bootstrap_$i && continue
|
bootstrap_$i
|
||||||
|
continue
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ "${BGJOB}" = "false" ]; then
|
if ! ${BGJOB}; then
|
||||||
libbootstrap ${i}
|
libbootstrap ${i}
|
||||||
else
|
else
|
||||||
libbootstrap ${i} &
|
libbootstrap ${i} &
|
||||||
|
@ -406,7 +407,7 @@ run() {
|
||||||
check_libtoolize
|
check_libtoolize
|
||||||
print_autotools_vers
|
print_autotools_vers
|
||||||
bootstrap_libs
|
bootstrap_libs
|
||||||
if [ "${BGJOB}" = "true" ]; then
|
if ${BGJOB}; then
|
||||||
wait
|
wait
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue