From: Francesco Chemolli Date: Sun, 22 Aug 2010 10:44:01 +0000 (+0200) Subject: Portability fix. Sometimes /bin/true is not, apparently, in /bin X-Git-Tag: take1~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96ccb41143f96c2d0b652b5ad083a53143ddd9f7;p=thirdparty%2Fsquid.git Portability fix. Sometimes /bin/true is not, apparently, in /bin --- diff --git a/test-suite/testheaders.sh b/test-suite/testheaders.sh index ccc7bb208d..cb0144a953 100755 --- a/test-suite/testheaders.sh +++ b/test-suite/testheaders.sh @@ -10,6 +10,11 @@ # cc="${1}" shift +for dir in /usr/bin /usr/local/bin /usr/gnu/bin +do + test -x ${dir}/true && TRUE=${dir}/true +done +TRUE=${TRUE:-/bin/true} exitCode=0 @@ -34,5 +39,5 @@ EOF done #who ever said that the test program needs to be meaningful? -test $exitCode -eq 0 && cp /bin/true testHeaders +test $exitCode -eq 0 && cp ${TRUE} testHeaders exit $exitCode