#! /bin/bash
#
g++ -c -g -Wall caffeine_scatter.cpp
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
g++ -o caffeine_scatter caffeine_scatter.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm caffeine_scatter.o
#
./caffeine_scatter > caffeine_scatter.txt
rm caffeine_scatter
#
#
gnuplot < caffeine_commands.txt
#
echo "Normal end of execution."
