:


./makeF77
if(test $? -ne 0) then
     exit 1
fi


echo Trying to complile the Fortran code 

  
  echo "Fortran  compilation."
cd f_source
  ./test16


for dir in service main usr strfun events 
do
  cd $dir
  echo "Fortran compilation. Source directory: $dir"
  ../f_compile  *.f  
   if(test $? -ne 0) then
    echo  ERROR  in Fortran-code compilation
    exit 1
  fi
  cd ..
done


for dir in service main usr strfun events 
do
  cd $dir
   ./export
   if(test $? -ne 0) then
    echo  Directory $dir:  ERROR  in execution  of ./export
    exit 1
  fi
  cd ..
done

echo Fortran code has been successfully compiled.

