From: Tobias Oetiker Date: Tue, 4 May 2004 05:25:19 +0000 (+0000) Subject: die only after all the version checks are done and not for each one X-Git-Tag: 1.2rc1~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6002a00181cf9ab97113ed1a6250dafad0cd91d2;p=thirdparty%2Frrdtool-1.x.git die only after all the version checks are done and not for each one -- Alex van den Bogaerdt git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@245 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/MakeMakefile b/MakeMakefile index 6e2250a6..6397703e 100755 --- a/MakeMakefile +++ b/MakeMakefile @@ -13,11 +13,12 @@ exit \$v PERL } +ERROR=0 if vcheck 1.5 "libtool --version" then echo "get a copy of GNU libtool >= 1.5" - exit 1 + ERROR=1 fi #if vcheck 1.8.2 "automake --version" @@ -40,7 +41,7 @@ then if vcheck 1.7.9 "automake-1.7 --version" then echo "get a copy of GNU automake >= 1.79" - exit 1 + ERROR=1 else automake=automake-1.7 aclocal="aclocal-1.7 --acdir=/usr/share/aclocal-1.7 -I /usr/share/aclocal/" @@ -52,7 +53,12 @@ fi if vcheck 2.58 "autoconf --version" then - echo "get a copy of GNU autoconf >= 2.54" + echo "get a copy of GNU autoconf >= 2.58" + ERROR=1 +fi + +if [ $ERROR -ne 0 ] +then exit 1 fi