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