]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability fix. Sometimes /bin/true is not, apparently, in /bin
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 22 Aug 2010 10:44:01 +0000 (12:44 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 22 Aug 2010 10:44:01 +0000 (12:44 +0200)
test-suite/testheaders.sh

index ccc7bb208d12f796dc0369190d4d6a4d97d5fdf5..cb0144a95373b069c07d03e1fb42b7044c424a02 100755 (executable)
 #
 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