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... " |
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` |