--- trunk/src/machines/makeautomachine.sh 2007/10/08 16:22:20 41 +++ trunk/src/machines/makeautomachine.sh 2007/10/08 16:22:32 42 @@ -27,7 +27,7 @@ # SUCH DAMAGE. # # -# $Id: makeautomachine.sh,v 1.4 2006/12/30 13:31:02 debug Exp $ +# $Id: makeautomachine.sh,v 1.5 2007/06/15 18:08:10 debug Exp $ printf "Generating automachine.c... " @@ -38,6 +38,16 @@ cat automachine_head.c >> automachine.c +printf "3" +rm -f .index +for a in *.c; do + B=`grep COMMENT $a` + if [ z"$B" != z ]; then + printf "$a " >> .index + echo "$B"|cut -d : -f 2- >> .index + fi +done + printf "2" for a in machine_*.c; do B=`grep MACHINE_REGISTER $a`