
INCLUDE=/usr/include/metaresearch
LIBRARY=/usr/lib/metaresearch
DSPFILES=/usr/lib/metaresearch/dsp

echo ""

if test ! -s ${INCLUDE}
then
echo "Creating "${INCLUDE}
mkdir ${INCLUDE}
fi

if test ! -s ${LIBRARY} 
then
echo "Creating "${LIBRARY}
mkdir ${LIBRARY}
fi

if test ! -s ${DSPFILES} 
then
echo "Creating "${DSPFILES}
mkdir ${DSPFILES}
fi

echo "Copying import files to:       ${INCLUDE}"
cp metaFiles/*.h ${INCLUDE}/

echo "Copying libraries to:          ${LIBRARY}"
cp metaFiles/*.a ${LIBRARY}/

echo "Copying dsp programs to:       ${DSPFILES}"
cp metaFiles/*.snd ${DSPFILES}/

echo "Metaresearch directories and files installed successfully"
echo ""
