#! /bin/bash
#
gcc -c -g -Wall -I/$HOME/include bank_code_test.c
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gcc -o bank_code_test bank_code_test.o /$HOME/libc/bank_code.o -lm
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
#
rm bank_code_test.o
#
./bank_code_test > bank_code_test.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
rm bank_code_test
#
echo "Normal end of execution."
