rm *.tmp
echo failure >urusserr.tmp
echo failure >urussout.tmp
echo failure >ulink.tmp
echo failure >progress.tmp
echo failure >reduce.tmp
echo failure >ccode.tmp
echo failure >stats.tmp
echo failure >lists.tmp
echo failure >tree.tmp
echo failure >nodes.tmp
echo failure >cons.tmp
echo failure >sym.tmp
echo failure >stats.tmp
echo failure >nodes_created.tmp

./mm
./russell -G -c $1  $1.r $1.out $1.sig >urussout.tmp 2>urusserr.tmp
# ./russell -G -c $1 $1.r $1.out $1.sig
./rrrr $1


echo "files"
echo "0) stdout stderr of compile"
echo "1) emacs tree.tmp"
echo "2) emacs urusserr.tmp urussout.tmp (stderr & stdout of russell execution)"
echo "3) emacs progress.tmp reduce.tmp"
echo "4) emacs ccode.tmp nodes.tmp"
echo "5) emacs cons.tmp lists.tmp"
echo "6) emacs sym.tmp sym2.tmp"
echo "7) emacs stats.tmp"
echo "8) emacs nodes_created.tmp"
echo "9) emacs russ_err.tmp russ_info.tmp"
echo "10 emacs opts.tmp"
echo "11 emacs fact.out"

echo "999 quit"
echo "select"
read select
while [ $select -ne 999 ]
do 
case $select in
0) emacs djd.tmp djd2.tmp;;
1) emacs tree.tmp;;
2) emacs urusserr.tmp urussout.tmp;;
3) emacs progress.tmp reduce.tmp;;
4) emacs ccode.tmp nodes.tmp;;
5) emacs cons.tmp lists.tmp;;
6) emacs sym.tmp sym2.tmp;;
7) emacs stats.tmp;;
8) emacs nodes_created.tmp;;
9) emacs russ_err.tmp russ_info.tmp;;
10) emacs opts.tmp;;
11) emacs fact.out;

esac
echo "files"
echo "0) stdout stderr of compile"
echo "1) emacs tree.tmp"
echo "2) emacs urusserr.tmp urussout.tmp (stderr & stdout of russell execution)"
echo "3) emacs progress.tmp reduce.tmp"
echo "4) emacs ccode.tmp nodes.tmp"
echo "5) emacs cons.tmp lists.tmp"
echo "6) emacs sym.tmp"
echo "7) emacs stats.tmp"
echo "8) emacs nodes_created.tmp"
echo "9) emacs russ_err.tmp russ_info.tmp"
echo "10 emacs opts.tmp"
echo "11 emacs fact.out"


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

