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
|
for d in . $REP_INCLUDE; do
|
||||||
if [ -f "$d/$f" ]; then
|
if [ -f "$d/$f" ]; then
|
||||||
F="$d/$f"
|
F="$d/$f"
|
||||||
|
C=`echo $f | sed 's~\.h$~\.c~'`
|
||||||
|
if [ -f "$d/$C" ]; then
|
||||||
|
target_dep_lst="$target_dep_lst $C"
|
||||||
|
fi
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ "$F" == "" ]; then
|
if [ "$F" == "" ]; then
|
||||||
echo "#include \"$f\" - file not found"
|
echo "#include \"$f\": file $f not found"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
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`
|
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