Mercurial > mxe-octave
view octave-wrapper.in @ 5957:9cd5425b033b
octave-launch-firsttime: New launcher executable for starting Octave first time.
* installer-files/octave-launch.c: Conditionally change to USERPROFILE before
running Octave.
* binary-dist-rules.mk(octave-launch-firsttime,
installer-files/octave-launch-firsttime.exe): Add build rules for new launcher
executable.
(copy-windows-dist-files): Copy octave-launch-firsttime.exe to
$(OCTAVE_DIST_DIR).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 20 Nov 2021 15:34:20 +0100 |
parents | c4899150cfc4 |
children |
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" GCC_VERSION="@GCC_VERSION@" GCC_ARCH="@GCC_ARCH@" GCC_LIB_DIR="$OCTAVE_HOME/lib/gcc/$GCC_ARCH/$GCC_VERSION" LD_LIBRARY_PATH="$OCTAVE_HOME/lib:$OCTAVE_HOME/lib64:$OCTAVE_HOME/lib/octave/@OCTAVE_VERSION@:$GCC_LIB_DIR" 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_ALWAYS_SOFTWARE=1 LIBGL_DRIVERS_PATH="$OCTAVE_HOME/lib/dri" PERL5LIB="$OCTAVE_HOME/lib/perl5" 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_ALWAYS_SOFTWARE export LIBGL_DRIVERS_PATH export PERL5LIB export QT_PLUGIN_PATH exec "$OCTAVE_HOME/bin/@PROGRAM_NAME@-@OCTAVE_VERSION@.real" "$@"