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