#!/bin/sh
# Set up environment
# Run this instead of trying to run bin/melt. It runs melt with the correct environment.
CURRENT_DIR=$(readlink -f "$0")
INSTALL_DIR=$(dirname "$CURRENT_DIR")
export LD_LIBRARY_PATH="$INSTALL_DIR/lib":$LD_LIBRARY_PATH
export MLT_REPOSITORY="$INSTALL_DIR/lib/mlt"
export MLT_DATA="$INSTALL_DIR/share/mlt"
export MLT_PROFILES_PATH="$INSTALL_DIR/share/mlt/profiles"
export FREI0R_PATH="$INSTALL_DIR/lib/frei0r-1"
export MLT_MOVIT_PATH="$INSTALL_DIR/share/movit"
export QT_PLUGIN_PATH="$INSTALL_DIR/lib/qt5"
export QML2_IMPORT_PATH="$INSTALL_DIR/lib/qml"
"$INSTALL_DIR/bin/melt" "$@"
