X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=build.sh;h=c92bc4aecf498b7e90c902eece257114c7025f21;hb=caf8a67c62e6b12ac21561f036703e06741cac04;hp=57f3d4449a99bef83b75b50f425dc548bc9ead60;hpb=d67b510b1ec7c17b6e1f65e40b8d8fdb2f33c857;p=collectd.git diff --git a/build.sh b/build.sh index 57f3d444..c92bc4ae 100755 --- a/build.sh +++ b/build.sh @@ -1,59 +1,54 @@ -#! /bin/sh +#!/bin/sh GLOBAL_ERROR_INDICATOR=0 check_for_application () { - for PROG in "$@" - do - which "$PROG" >/dev/null 2>&1 - if test $? -ne 0; then - cat >&2 </dev/null 2>&1 + if test $? -ne 0; then + cat >&2 </dev/null 2>/dev/null if test $? -eq 0 then - libtoolize=libtoolize + libtoolize=libtoolize else - glibtoolize --version >/dev/null 2>/dev/null - if test $? -eq 0 - then - libtoolize=glibtoolize - else - cat >&2 </dev/null 2>/dev/null + if test $? -eq 0 + then + libtoolize=glibtoolize + else + cat >&2 <