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