: shell file to make fortran/C converter
cc -s -n -O -o /usr/bin/ctof ctof.c
as -o fcall.o fcall.s
ar r /lib/libc.a fcall.o
ar t /lib/libc.a >ct
ar t /lib/liba.a >at
rm -f /lib/libC.obj
rm -f /lib/libA.obj
mkdir tmp
chdir tmp
ar x /lib/libc.a
ed ../ct
1,$s/.*$/ctof & &bj; libr \/lib\/libC.obj -a &bj/
w
q
sh ../ct
rm -f [a-k]*.o
rm -f [a-k]*.obj
rm -f *.o
rm -f *.obj
ar x /lib/liba.a
ed ../at
1,$s/.*$/sctof & &bj; libr \/lib\/libA.obj -a &bj/
w
q
sh ../at
rm -f [a-k]*.o
rm -f [a-k]*.obj
rm -f *.o
rm -f *.obj
chdir ..
rm -f tmp/*
rmdir tmp
rm at ct
