#! /bin/bash
#
gfortran -c -g -Wall legendre_fast_rule.f90
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran legendre_fast_rule.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm legendre_fast_rule.o
#
chmod ugo+x a.out
mv a.out ~/bin/legendre_fast_rule
#
echo "Normal end of execution."
