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