#!/bin/sh
MYDIR=$(dirname $0)

FLY_OCR_LIB_DIRS=$MYDIR/fly-ocr

LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FLY_OCR_LIB_DIRS}
export LD_LIBRARY_PATH
export FLY_OCR_PLUGINS=$MYDIR/plugins/tesseract

$MYDIR/app/fly-ocr "$@"
