#!/bin/sh

PYTHONBIN=`/usr/sbin/pkg_info -Q PYTHONBIN libreoffice`
VERS=`/usr/sbin/pkg_info -e libreoffice | sed 's/nb[0-9]\{1,\}$//'`
UNO_PATH=/usr/pkg/${VERS}/lib/libreoffice/program
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${UNO_PATH}

export UNO_PATH
export LD_LIBRARY_PATH

${PYTHONBIN} /usr/pkg/libexec/unoconv.py "$@"
