From: Francesco Chemolli Date: Tue, 25 Aug 2009 17:11:58 +0000 (+0200) Subject: Fix some bash-isms in the test-suite. X-Git-Tag: SQUID_3_2_0_1~762 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9af8775f9e22d889daa771b52a88dc2c06fcdc45;p=thirdparty%2Fsquid.git Fix some bash-isms in the test-suite. --- diff --git a/test-suite/testheaders.sh b/test-suite/testheaders.sh index 5fe91316af..49c25add78 100755 --- a/test-suite/testheaders.sh +++ b/test-suite/testheaders.sh @@ -18,12 +18,13 @@ fi for f in `cd ${dir} && ls -1 *.h 2>/dev/null`; do echo -n "Testing ${dir}/${f} ..." - if [[ "${f}" == "cf_gen_defines.h" || "${f}" == "cf_parser.h" ]]; then + if [ "${f}" = "cf_gen_defines.h" -o "${f}" = "cf_parser.h" ]; then echo " IGNORED!" continue fi hdr=`echo "${f}" | sed s/.h//` - if [ ${dir}/${f} -nt ./testHeaderDeps_${hdr}.o ]; then + if [ ! -e ./testHeaderDeps_${hdr}.o -o ${dir}/${f} -nt ./testHeaderDeps_${hdr}.o ] + then ( echo "/* This file is AUTOMATICALLY GENERATED. DO NOT ALTER IT */" echo "#include \"${dir}/${f}\" " echo "int main( int argc, char* argv[] ) { return 0; } "