]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix some bash-isms in the test-suite.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 25 Aug 2009 17:11:58 +0000 (19:11 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 25 Aug 2009 17:11:58 +0000 (19:11 +0200)
test-suite/testheaders.sh

index 5fe91316afaca799984ae90d02a1ff0522fc122f..49c25add78b64b3782b3767f632e4476decbbc80 100755 (executable)
@@ -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; } "