file not found fix
This commit is contained in:
parent
d1768cdcab
commit
381b9070d5
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue