echo "files"
echo "1 main"
echo "2 mine"
echo "3 defs"
echo "4 global_vars"
echo "5 globals_init"
echo "19 appl"
echo "20 cl_analyze"
echo "21 closures.doc"
echo "22 codegen"
echo "23 compile_decl"
echo "24 compile_stubs"
echo "25 display"
echo "26 find_inline"
echo "27 ident"
echo "28 is_int_const"
echo "29 op_codes"
echo "30 sl_analyze"
echo "31 trace"
echo "32 traverse"
echo "33 type_constr"
echo "34 var_in_reg"
echo "35 codegen_str.inc"
echo "36 drefops"
echo "37 find_inline"

echo "111 TEST fact"
echo "112 TEST misc"
echo "113 TEST simp0001"
echo "114 TEST simp0002"
echo "123 TEST simp0011"
echo "124 TEST simp0012"
echo "125 TEST simp0013"

echo "999 quit"
echo "select"
read select
while [ $select -ne 999 ]
do 
case $select in
1)  emacs main.c main.icn;;
2)  emacs mine.icn;;
3)  emacs defs.icn;;
4)  emacs global_vars.icn;;
5)  emacs globals_init.icn;;
19) emacs pass5d/appl.c pass5d/appl.icn;;
20) emacs pass5d/cl_analyze.c pass5d/cl_analyze.icn;;
21) emacs pass5d/closures.doc.c cpass5d/losures.doc.icn;;
22) emacs pass5d/codegen.c pass5d/codegen.icn;;
23) emacs pass5d/compile_decl.c pass5d/compile_decl.icn;;
24) emacs pass5d/compile_stubs.c pass5d/compile_stubs.icn;;
25) emacs pass5d/display.c pass5d/display.icn;;
26) emacs pass5d/find_inline.c pass5d/find_inline.icn;;
27) emacs pass5d/ident.c pass5d/ident.icn;;
28) emacs pass5d/is_int_const.c pass5d/is_int_const.icn;;
29) emacs pass5d/op_codes.c pass5d/op_codes.icn;;
30) emacs pass5d/sl_analyze.c pass5d/sl_analyze.icn;;
31) emacs pass5d/trace.c pass5d/trace.icn;;
32) emacs pass5d/traverse.c pass5d/traverse.icn;;
33) emacs pass5d/type_constr.c pass5d/type_constr.icn;;
34) emacs pass5d/var_in_reg.c pass5d/var_in_reg.icn;;
35) emacs pass5d/codegen.c pass5d/codegen_str.inc.icn;;
36) emacs stree/drefops.c stree/drefops.icn;;
37) emacs pass5d/find_inline.c pass5d/find_inline.icn;;



111) ./testfact;;
112) ./testmisc;;
113) ./testsimp0001;;
114) ./testsimp0002;;
123) ./testsimp0011;;
124) ./testsimp0012;;
125) ./testsimp0013;;

esac
echo "files"
echo "1 main"
echo "2 mine"
echo "3 defs"
echo "4 global_vars"
echo "5 globals_init"
echo "19 appl"
echo "20 cl_analyze"
echo "21 closures.doc"
echo "22 codegen"
echo "23 compile_decl"
echo "24 compile_stubs"
echo "25 display"
echo "26 find_inline"
echo "27 ident"
echo "28 is_int_const"
echo "29 op_codes"
echo "30 sl_analyze"
echo "31 trace"
echo "32 traverse"
echo "33 type_constr"
echo "34 var_in_reg"
echo "35 codegen_str.inc"
echo "36 drefops"
echo "37 find_inline"




echo "111 TEST fact"
echo "112 TEST misc"
echo "113 TEST simp0001"
echo "114 TEST simp0002"
echo "123 TEST simp0011"
echo "124 TEST simp0012"
echo "125 TEST simp0013"

echo "999 quit"
echo "select"
read select
done
