echo "files"
echo "1 main"
echo "2 mine"
echo "3 defs"
echo "4 global_vars"
echo "5 globals_init"
echo "6 RIC"
echo "7 RIC.inc"
echo "8 RICfilter" 
echo "20 accessible"
echo "21 analyze"
echo "22 bld_analyze"
echo "23 decl_sort"
echo "24 analyze_let_op.inc"
echo "25 analyze_str.inc"
echo "26 analyze_gt.inc"
echo "27 analyze_prim.inc"
echo "28 allocate"
echo "29 gden_order"
echo "30 tsig_order"
echo "31 fixup"

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;;
6)  emacs pass5d/RIC.c pass5d/RIC.icn;;
7)  emacs RICfilter/RIC.h RICfilter/RIC.inc.icn;;
8)  emacs RICfilter/filter.c RICfilter/filter.icn;;
20) emacs pass5c/accessible.c pass5c/accessible.icn;;
21) emacs pass5c/analyze.c pass5c/analyze.icn;;
22) emacs pass5c/bld_analyze.c pass5c/bld_analyze.icn;;
23) emacs pass5c/decl_sort.c pass5c/decl_sort.icn;;
24) emacs pass5c/analyze.c pass5c/analyze_let_op.inc.icn;;
25) emacs pass5c/analyze.c pass5c/analyze_str.inc.icn;;
26) emacs pass5c/analyze.c pass5c/analyze_gt.inc.icn;;
27) emacs pass5c/analyze.c pass5c/analyze_prim.inc.icn;;
28) emacs pass5c/allocate.c pass5c/allocate.icn;;
29) emacs pass3/gden_order.c pass3/gden_order.icn;;
30) emacs pass3/tsig_order.c pass3/tsig_order.icn;;
31) emacs pass3/fixup.c pass3/fixup.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 "6 RIC"
echo "7 RIC.inc"
echo "8 RICfilter" 
echo "19 appl"
echo "20 accessible"
echo "21 analyze"
echo "22 bld_analyze"
echo "23 decl_sort"
echo "24 analyze_let_op.inc"
echo "25 analyze_str.inc"
echo "26 analyze_gt.inc"
echo "27 analyze_prim.inc"
echo "28 allocate"
echo "29 gden_order"
echo "30 tsig_order"
echo "31 fixup"


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
