From 3282a35d99d59128d894d69cd8fa20230451d911 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 4 Apr 2012 23:34:06 +0000 Subject: [PATCH] bootstrap.sh: refactor --- bootstrap.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 5ccf450f97..ed72523f31 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -300,7 +300,7 @@ bootstrap_apr() { echo "Entering directory ${LIBDIR}/apr-util" cd ${LIBDIR}/apr-util - if [ "${BGJOB}" = "false" ]; then + if ! ${BGJOB}; then ./buildconf else ./buildconf & @@ -384,11 +384,12 @@ bootstrap_libs() { for i in ${SUBDIRS}; do case "$i" in apr|fs|libzrtp) - [ "${BGJOB}" = "true" ] && wait - bootstrap_$i && continue + ${BGJOB} && wait + bootstrap_$i + continue ;; esac - if [ "${BGJOB}" = "false" ]; then + if ! ${BGJOB}; then libbootstrap ${i} else libbootstrap ${i} & @@ -406,7 +407,7 @@ run() { check_libtoolize print_autotools_vers bootstrap_libs - if [ "${BGJOB}" = "true" ]; then + if ${BGJOB}; then wait fi }