file not found fix

This commit is contained in:
Kolan Sh 2011-07-07 17:53:19 +04:00
parent d1768cdcab
commit 381b9070d5
1 changed files with 5 additions and 1 deletions

View File

@ -78,11 +78,15 @@ while [[ "$target_dep_lst" != "$old_target_dep_lst" ]]; do
for d in . $REP_INCLUDE; do
if [ -f "$d/$f" ]; then
F="$d/$f"
C=`echo $f | sed 's~\.h$~\.c~'`
if [ -f "$d/$C" ]; then
target_dep_lst="$target_dep_lst $C"
fi
break
fi
done
if [ "$F" == "" ]; then
echo "#include \"$f\" - file not found"
echo "#include \"$f\": file $f not found"
exit -1
fi
target_dep_lst="$target_dep_lst "`remove_c_or_cpp_comments.sed $REP_TARGET.c | grep -P '^[\t ]*#include[\t ]*"' | sed 's~[^"]*"\([^"]*\)".*~\1~' | sort -u`