AT_SETUP([Checking for presence of every Action in GlobalListOfActions]) AT_KEYWORDS([CodeCheck action globallistofactions GlobalListOfActions_hpp]) ok="NoAction" echo "Checking in ${abs_top_srcdir}/src/Actions/" liste=`find ${abs_top_srcdir}/src/Actions/ -name '[[A-Z]]*Action.def'` for filename in $liste do category=`grep CATEGORY $filename | grep -v undef | sed 's/#define CATEGORY//g' | tr -d \ ` action=`grep ACTIONNAME $filename | sed 's/#define ACTIONNAME//g' | tr -d \ ` actionname=$category$action echo -n "$actionname: " found=0 for item in $ok do if test x"$item" = x"$actionname" then found=1 break fi done # if not, check whether it contains the include if test $found -eq 0 then AT_CHECK([grep "(${actionname})" ${abs_top_srcdir}/src/Actions/GlobalListOfActions.hpp], 0, [stdout], [ignore]) else echo "excluded." fi done echo "fordone" AT_CLEANUP