5 if [ ! -d "$dir" ]; then continue; fi
9 for i in $(find . -iname "*cpp" -o -iname "*.rc" -o -iname "*.resx" -o -iname "*.cs" ); do
11 if [ ! -z "$(echo "$i" | grep '.svn')" ]; then continue; fi
13 is_lib_cpp=$(echo $i | sed -n -e 's/^\(.*_library.cpp\)$/\1/p')
14 if [ ! -z "$is_lib_cpp" ]; then
15 # don't require the X_library.cpp file to be listed.
19 # make the exe variant to search for that as a secondary possibility.
20 altered_file="$(echo $i | sed -e 's/\.cpp$/\.exe/')"
22 for q in makefile*; do
23 grep -l $(echo $i | sed -e 's/^\.\///' ) $q &>/dev/null
26 # try again with the exe form of the name.
27 grep -l $(echo "$altered_file" | sed -e 's/^\.\///' ) $q &>/dev/null
30 # complain now, it's definitely missing.
31 echo "missing $i in $dir/$q"
39 if [ -z "$problems_seen" ]; then
40 echo "makefiles okay in $dir"