#!/bin/sh

touch ./.depend

# Taking care of the gnuplot version number
GNUPLOT=`which gnuplot`
case $GNUPLOT in
"*not found*")
    echo
    echo "Gnuplot is not present in your searching PATH,"
    echo "graphical facilities will not work..."
    echo
    VER=0.
    ;;
*)
    VER=`$GNUPLOT -V  2>/dev/null | awk '{print $2}'`
    [ -z "$VER" ] && VER=3.7
    ;;
esac
sed "s/XXGPLXX/$VER/" gnuplot.ML > gnuplot.ml

make clean
