#!/bin/sh
# This script omc-start is a start script. The script sets the required
# environment variables and invokes OpenModelica Compiler/Interpreter omc
# in direct mode or sets omc in server mode. For more informations about the
# the OpenModelica Compiler/Interpreter omc and its command options read the
# manual page omc(1).
#
# The script omc-start based on the work of William Spinelli's package_builder
# and changed by Robert Wotzlaw.

# Set OpenModelica Compiler/Interpreter omc environment variables.
export OPENMODELICAHOME=/usr/lib/omc
export OPENMODELICALIBRARY=/usr/share/omlibrary/modelicalib/
export QTHOME=${OPENMODELICAHOME}/lib

# Start Compiler/Interpreter omc.
${OPENMODELICAHOME}/bin/omc $*
