X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=build.sh;h=bd4c1a319108e28ac3ec0b8822c733bcdd6dd4e2;hp=465eff9d8eaffcd1a917382722364c4a152791e2;hb=a9e50e9e30ecde17e167e271060c8183bfcbf407;hpb=fb0cc621d4357bbe4a9dc36c7f055f46257ce57c diff --git a/build.sh b/build.sh index 465eff9d..bd4c1a31 100755 --- a/build.sh +++ b/build.sh @@ -1,59 +1,51 @@ -#! /bin/sh +#!/bin/sh GLOBAL_ERROR_INDICATOR=0 -check_for_application () +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 +if test $? -eq 0; then + 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 <