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