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; } "