#! /bin/bash
#
gfortran -c -g -Wall humps_plot.f90
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran humps_plot.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm humps_plot.o
#
mv a.out humps_plot
./humps_plot > humps_plot.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
rm humps_plot
#
#  Create graphics.
#
gnuplot < humps_commands.txt
#
echo "Normal end of execution."
