Simple script for installing CVS version of gnuplot under OSX.
Contributed by Flavio Pane.

#! /bin/sh
#
cd /Users/"$(whoami)"/Desktop/
echo "Gnuplot svn compilation: aquaterm support only, to have x11 simply delete -with-x=no option"
echo "You need automake newer 1.8 (fink helps)!!"
echo "To have gnu readline support, install readline5-shlibs from fink and check if there is the sym link in /usr/lib : libreadline.dylib -> /sw/lib/libreadline.5.0.dylib"
echo "Press ENTER when asked for cvs pwd"
echo
cvs -d:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot login
cvs -z3 -d:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot co -P gnuplot
cd gnuplot/
sudo ./prepare
./configure -with-x=no --without-tutorial CFLAGS=-DDEFAULTTERM=\\\"aqua\\\" --with-readline=gnu
make
cd src/
sudo cp gnuplot /Users/"$(whoami)"/Desktop/gnuplot_svn
cd /Users/"$(whoami)"/Desktop/
version=`gnuplot_svn --version | awk '{print $2}'`
date=`date | awk '{print $3 $2 $6}'`
mv gnuplot_svn gnuplot-"$version"_svn"$date"
echo "Removing compilation folder and moving binary file to Desktop..."
sudo rm -r gnuplot/