#! /bin/sh

if [ -f splin2.c.orig -a -f splie2.c.orig -a -f splint.c.orig -a -f spline.c.orig -a -f nrutil.c.orig ]; then

    echo -n Cocatenating original Numerical Recipes files into one... 
    cat splin2.c.orig splie2.c.orig splint.c.orig spline.c.orig nrutil.c.orig > splin2NEW.c
    echo Done.

    echo -n Patching the original to produce our version... 
    patch < NRpatch
    echo Done.

    echo "............................................................."
    echo Please copy splin2NEW.c to the source directory as splin2.c.
    echo "............................................................."

fi

exit
