From: hno <> Date: Tue, 4 Sep 2001 04:15:07 +0000 (+0000) Subject: Major cleanup to separate error handling from normal flow X-Git-Tag: SQUID_3_0_PRE1~1415 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96b8d5c3fb46a09d03e0334a4a5c74510ead5eba;p=thirdparty%2Fsquid.git Major cleanup to separate error handling from normal flow Added creation of cfgaux if it does not exists --- diff --git a/bootstrap.sh b/bootstrap.sh index 166f66ed70..623faa3cb0 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -4,24 +4,23 @@ # configure has not been run, or if a Makefile.am in a non-configured directory # has been updated -if ! ( aclocal ) ; then - echo "aclocal failed" -else - if ! ( autoheader ) ; then - echo "autoheader failed" - else - if ! ( automake --foreign --add-missing ) ; then - echo "automake failed" - else - if ! ( autoconf ) ; then - echo "autoconf failed" - else - echo "Autotool bootstrapping complete." - exit 0 - fi - fi + +bootstrap() { + if ! "$@"; then + echo "$1 failed" + echo "Autotool bootstrapping failed. You will need to investigate and correct" ; + echo "before you can develop on this source tree" + exit 1 fi -fi +} + +# Make sure cfgaux exists +mkdir -p cfgaux + +# Bootstrap the autotool subsystems +bootstrap aclocal +bootstrap autoheader +bootstrap automake --foreign --add-missing +bootstrap autoconf -echo "Autotool bootstrapping failed. You will need to investigate and correct" ; -echo "before you can develop on this source tree" +echo "Autotool bootstrapping complete."