#!/bin/bash
#
cp $HOME/public_html/datasets/tsp/att48.tsp .
cp $HOME/public_html/datasets/tsp/p01.tsp .
#
gfortran -c -g -Wall tsp_io_test.f90
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran -o tsp_io_test tsp_io_test.o $HOME/lib/tsp_io.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm tsp_io_test.o
#
./tsp_io_test > tsp_io_test.txt
if [ $? -ne 0 ]; then
  echo "Execution error."
  exit
fi
#
rm tsp_io_test
rm att48.tsp
rm p01.tsp
#
echo "Normal end of execution."
