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