#!/bin/csh
g77 -o trt2linux -O2 -ffixed-line-length-none trt2linux.f
#
gcc -o cybimg -DUNIX -DLINUX cybimg.c
#
echo "FORTRAN-77 version" > trt2-linux-f77-log.txt
echo "trt2go..."  >> trt2-linux-f77-log.txt
/usr/bin/time -o trt2-linux-f77-log.txt -a ./trt2linux < trt2go.in >> trt2-linux-f77-log.txt
mv fort.7 trt2go.out
./cybimg trt2go.out trt2go.tif
#
echo "trt2ts..." >> trt2-linux-f77-log.txt
/usr/bin/time -o trt2-linux-f77-log.txt -a ./trt2linux < trt2ts.in >> trt2-linux-f77-log.txt
mv fort.7 trt2ts.out
./cybimg trt2ts.out trt2ts.tif
#
echo "trt2t1..." >> trt2-linux-f77-log.txt
/usr/bin/time -o trt2-linux-f77-log.txt -a ./trt2linux < trt2t1.in >> trt2-linux-f77-log.txt
mv fort.7 trt2t1.out
./cybimg trt2t1.out trt2t1.tif
#
echo "trt2tb..." >> trt2-linux-f77-log.txt
/usr/bin/time -o trt2-linux-f77-log.txt -a ./trt2linux < trt2tb.in >> trt2-linux-f77-log.txt
mv fort.7 trt2tb.out
./cybimg trt2tb.out trt2tb.tif
#
echo "trt2df..." >> trt2-linux-f77-log.txt
/usr/bin/time -o trt2-linux-f77-log.txt -a ./trt2linux < trt2df.in >> trt2-linux-f77-log.txt
mv fort.7 trt2df.out
./cybimg trt2df.out trt2df.tif
#
echo "trt2hl..." >> trt2-linux-f77-log.txt
/usr/bin/time -o trt2-linux-f77-log.txt -a ./trt2linux < trt2hl.in >> trt2-linux-f77-log.txt
mv fort.7 trt2hl.out
./cybimg trt2hl.out trt2hl.tif
#
echo "Done." >> trt2-linux-f77-log.txt
echo "Done."

