#! /bin/bash
#
gfortran -c -g -Wall tsp_display_test.f
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran -o tsp_display_test tsp_display_test.o $HOME/libf77/tsp_display.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
#
rm tsp_display_test.o
#
./tsp_display_test > tsp_display_test.txt
rm tsp_display_test
#
#  Run gnuplot to create the image.
#
gnuplot < dantzig42_commands.txt
rm dantzig42_commands.txt
rm dantzig42_data.txt
#
echo "Normal end of execution."
