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