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