/[gxemul]/trunk/src/machines/makeautomachine.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/machines/makeautomachine.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 27  Line 27 
27  #  SUCH DAMAGE.  #  SUCH DAMAGE.
28  #  #
29  #  #
30  #  $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 $
31    
32    
33  printf "Generating automachine.c... "  printf "Generating automachine.c... "
# Line 38  printf "/*\n *  DO NOT EDIT. AUTOMATICAL Line 38  printf "/*\n *  DO NOT EDIT. AUTOMATICAL
38    
39  cat automachine_head.c >> automachine.c  cat automachine_head.c >> automachine.c
40    
41    printf "3"
42    rm -f .index
43    for a in *.c; do
44            B=`grep COMMENT $a`
45            if [ z"$B" != z ]; then
46                    printf "$a " >> .index
47                    echo "$B"|cut -d : -f 2- >> .index
48            fi
49    done
50    
51  printf "2"  printf "2"
52  for a in machine_*.c; do  for a in machine_*.c; do
53          B=`grep MACHINE_REGISTER $a`          B=`grep MACHINE_REGISTER $a`

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26