#! /bin/bash
#
gfortran -c -g -Wall cdflib_test.f
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran -o cdflib_test cdflib_test.o $HOME/libf77/cdflib.o $HOME/libf77/test_values.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm cdflib_test.o
#
./cdflib_test > cdflib_test.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
rm cdflib_test
#
echo "Normal end of execution."
