#!/bin/bash for dir in $*; do for i in `find $dir -iname "*cpp" -o -iname "*.rc" -o -iname "*.resx" -o -iname "*.cs" `; do #echo curr is $i is_lib_cpp=`echo $i | sed -n -e 's/^\(.*_library.cpp\)$/\1/p'` if [ ! -z "$is_lib_cpp" ]; then # don't require the X_library.cpp file to be listed. continue; fi #echo is_lib_cpp=$is_lib_cpp for q in $dir/makefile*; do grep -l `echo $i | sed -e 's/^\\.\\///' ` $q >/dev/null 2>&1 if [ $? != 0 ]; then echo Missing $i in $q fi done done for i in `find $dir -iname "makefile*"`; do echo "parse the file $i !!!" # file_list=`cat $i | grep SOURCE ` #echo "makefile SOURCE is $SOURCE ." done done