view octave-wrapper.in @ 4499:c10c61a3222c

octave-wrapper.in: Also set QT_PLUGIN_PATH.
author John W. Eaton <jwe@octave.org>
date Tue, 10 Oct 2017 14:44:05 -0400
parents 788dc298ec00
children f3d64fe692e6
line wrap: on
line source

#! /bin/sh

OCTAVE_HOME=""

if [ -z "$OCTAVE_HOME" ]; then
  echo "you must edit $0 to set OCTAVE_HOME" 1>&2
  exit 1;
fi

PATH="$OCTAVE_HOME/bin/:$PATH"

LD_LIBRARY_PATH="$OCTAVE_HOME/lib:$OCTAVE_HOME/lib64:$OCTAVE_HOME/lib/octave/@OCTAVE_VERSION@"

TERMINFO="$OCTAVE_HOME/share/terminfo"

TERM="vt100"

FONTCONFIG_PATH="$OCTAVE_HOME/etc/fonts"

GNUPLOT_DRIVER_DIR="$OCTAVE_HOME/libexec/gnuplot/@GNUPLOT_MAJOR_MINOR_VERSION@"
GNUPLOT_SHARE_DIR="$OCTAVE_HOME/share/gnuplot/@GNUPLOT_MAJOR_MINOR_VERSION@"
GNUPLOT_PS_DIR="$GNUPLOT_SHARE_DIR/PostScript"

LIBGL_DRIVERS_PATH="$OCTAVE_HOME/lib/dri"

QT_PLUGIN_PATH="$OCTAVE_HOME/plugins"

export OCTAVE_HOME
export PATH
export LD_LIBRARY_PATH
export TERMINFO
export TERM
export FONTCONFIG_PATH
export GNUPLOT_DRIVER_DIR
export GNUPLOT_SHARE_DIR
export GNUPLOT_PS_DIR
export LIBGL_DRIVERS_PATH
export QT_PLUGIN_PATH

exec "$OCTAVE_HOME/bin/@PROGRAM_NAME@-@OCTAVE_VERSION@.real" "$@"