#!/bin/bash
case "$OSTYPE" in
    linux*)   REALPATH="$(readlink -f "$0")" ;;
    darwin*)  REALPATH="$(realpath "$0")" ;;
esac
DIR="$(dirname "$REALPATH")"
#MLPROC=$DIR/../node_modules/.bin/mlproc
MLPROC=$DIR/../mlproc/mlproc

if [[ -e "$MLPROC" ]]
then
    $MLPROC $@
else
    printf "'mlproc' not found at: $MLPROC;\nHave you run npm install (-g) yet?\n"
fi
